Skip to content

Commit

Permalink
chore(golangci-lint): enable nolintlint
Browse files Browse the repository at this point in the history
See #331.
  • Loading branch information
bfabio committed Mar 1, 2023
1 parent 13200ff commit 5bbfb0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ linters:
# - nilnil
# - nlreturn
# - noctx
# - nolintlint
- nolintlint
# - nonamedreturns
- nosprintfhostport
- paralleltest
Expand Down
4 changes: 2 additions & 2 deletions git/clone_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ func CloneRepository(hostname, name, gitURL, index string) error {

// If folder already exists it will do a fetch instead of a clone.
if _, err := os.Stat(path); !os.IsNotExist(err) {
out, err := exec.Command("git", "-C", path, "fetch", "--all").CombinedOutput() // nolint: gas
out, err := exec.Command("git", "-C", path, "fetch", "--all").CombinedOutput()
if err != nil {
return fmt.Errorf("cannot git pull the repository: %s: %s", err.Error(), out)
}
return nil
}

out, err := exec.Command("git", "clone", "--filter=blob:none", "--mirror", gitURL, path).CombinedOutput() // nolint: gas
out, err := exec.Command("git", "clone", "--filter=blob:none", "--mirror", gitURL, path).CombinedOutput()
if err != nil {
return fmt.Errorf("cannot git clone the repository: %s: %s", err.Error(), out)
}
Expand Down

0 comments on commit 5bbfb0c

Please sign in to comment.