From 4d22da5312d84b6df5aae92e2913893ba05da270 Mon Sep 17 00:00:00 2001 From: heyarne Date: Thu, 10 Feb 2022 18:58:02 +0100 Subject: [PATCH] Fix `inkpot-cli convert ` --- cmd/convert.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/convert.go b/cmd/convert.go index e8aa8d9..a37efbd 100644 --- a/cmd/convert.go +++ b/cmd/convert.go @@ -35,11 +35,10 @@ Pass "-" as the filename to read from stdin.`, if args[0] == "-" { input = os.Stdin } else { - input, err := os.Open(args[0]) + input, err = os.Open(args[0]) if err != nil { log.Fatalf("Error opening file: %v", err) } - defer input.Close() } // write to given outfile, default to stdout