Fix -o flag

This commit is contained in:
komissarovyv committed 2025-11-01 13:35:00 +03:00
1 parent 915faf6210
commit a42a15d6d6
4 files changed
+10 -7

No files matched your search

+3 -1
View File
@@ -132,7 +132,9 @@ func (c Variables) readVariablesFromCsv(filepath string) ([]model.UpsertVariable
if err != nil {
return nil, errors.WithMessagef(err, "failed to open file %s", filepath)
}
defer file.Close()
defer func() {
_ = file.Close()
}()
reader := csv.NewReader(file)
reader.TrimLeadingSpace = true