diff options
Diffstat (limited to 'skate/xio/util.go')
-rw-r--r-- | skate/xio/util.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/skate/xio/util.go b/skate/xio/util.go index 9967540..4fc8905 100644 --- a/skate/xio/util.go +++ b/skate/xio/util.go @@ -9,14 +9,14 @@ import ( ) // OpenTwo opens two files. The caller needs to check for a single error only. -func OpenTwo(f1, f2 string) (g1, g2 *os.File, err error) { - if g1, err = os.Open(f1); err != nil { +func OpenTwo(f0, f1 string) (g0, g1 *os.File, err error) { + if g0, err = os.Open(f0); err != nil { return nil, nil, err } - if g2, err = os.Open(f2); err != nil { + if g1, err = os.Open(f1); err != nil { return nil, nil, err } - return g1, g2, nil + return g0, g1, nil } // TabsToMapFile turns two columns from a tabular file into a map. |