2025-11-01 13:36:07: merge [main:a42a15d6d6a2aed3e341bb7f2e283cde097dc334];
This commit is contained in:
1 parent
b7b9a303ba
commit
aff6aefec6
4 files changed
+10
-7
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user