Properly close file after use

This commit is contained in:
Manuel Bua 2020-07-26 15:35:26 +02:00
parent 32e20b13e6
commit 3cc79c2c49

View File

@ -109,6 +109,7 @@ func New(options *Options) (*Runner, error) {
dupeCount++ dupeCount++
} }
} }
input.Close()
runner.input = sb.String() runner.input = sb.String()
if dupeCount > 0 { if dupeCount > 0 {
gologger.Labelf("Supplied input was automatically deduplicated (%d removed).", dupeCount) gologger.Labelf("Supplied input was automatically deduplicated (%d removed).", dupeCount)