We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e14498 commit 6691298Copy full SHA for 6691298
.github/workflows/go.yml
@@ -15,7 +15,7 @@ jobs:
15
go-version-file: go.mod
16
17
- name: Run golangci-lint
18
- uses: golangci/golangci-lint-action@v6
+ uses: golangci/golangci-lint-action@v8
19
20
- name: Build
21
run: make k0s_sort
cmd/k0s_sort/main.go
@@ -61,7 +61,11 @@ func main() {
61
println("can't open file:", err.Error())
62
os.Exit(1)
63
}
64
- defer file.Close()
+ defer func() {
65
+ if err := file.Close(); err != nil {
66
+ println("can't close file:", err.Error())
67
+ }
68
+ }()
69
files = append(files, file)
70
71
input = io.MultiReader(files...)
0 commit comments