diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-01 12:11:27 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-01 12:11:27 +0200 |
commit | 562713dd62970b2bfd155fc68ad3f5a49699ae1f (patch) | |
tree | ff06390c6661947d539180d0ea4ae23bd9b552f0 /skate/xio | |
parent | 05b2057e6a2daeda3bfa76a0bc4b051b2b8e582a (diff) | |
download | refcat-562713dd62970b2bfd155fc68ad3f5a49699ae1f.tar.gz refcat-562713dd62970b2bfd155fc68ad3f5a49699ae1f.zip |
try to zero index pairs
Diffstat (limited to 'skate/xio')
-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. |