Skip to content

Commit

Permalink
Replace golint with revive and fix a revive error (#932)
Browse files Browse the repository at this point in the history
* Replace golint with revive and fix a revive error

* github: bump golangci-lint version
  • Loading branch information
Leonidas Tsampros committed Sep 24, 2021
1 parent 6c2bf3c commit caba2d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
version: v1.42
build:
name: Build
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ linters:
#- gocyclo
- gofmt
- goimports
- golint
- revive
#- gosec
- gosimple
- govet
Expand Down
2 changes: 1 addition & 1 deletion controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func reconcileRestore(restore *fdbtypes.FoundationDBRestore) (reconcile.Result,
func reconcileObject(reconciler reconcile.Reconciler, metadata metav1.ObjectMeta, requeueLimit int) (reconcile.Result, error) {
attempts := requeueLimit + 1
result := reconcile.Result{Requeue: true}
var err error = nil
var err error
for result.Requeue && attempts > 0 {
log.Info("Running test reconciliation")
attempts--
Expand Down

0 comments on commit caba2d1

Please sign in to comment.