Skip to content

Commit 6691298

Browse files
dependabot[bot]kke
andauthored
Bump golangci/golangci-lint-action from 6 to 8 (#31)
* Bump golangci/golangci-lint-action from 6 to 8 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 8. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v8) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Fix lint error from new golangci lint Signed-off-by: Kimmo Lehto <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Kimmo Lehto <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kimmo Lehto <[email protected]>
1 parent 7e14498 commit 6691298

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
go-version-file: go.mod
1616

1717
- name: Run golangci-lint
18-
uses: golangci/golangci-lint-action@v6
18+
uses: golangci/golangci-lint-action@v8
1919

2020
- name: Build
2121
run: make k0s_sort

cmd/k0s_sort/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ func main() {
6161
println("can't open file:", err.Error())
6262
os.Exit(1)
6363
}
64-
defer file.Close()
64+
defer func() {
65+
if err := file.Close(); err != nil {
66+
println("can't close file:", err.Error())
67+
}
68+
}()
6569
files = append(files, file)
6670
}
6771
input = io.MultiReader(files...)

0 commit comments

Comments
 (0)