Skip to content

Commit

Permalink
remove depguard and fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoisaiah committed Jul 19, 2023
1 parent 7a658d5 commit 0cf7abc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ linters:
- decorder
- containedctx
- contextcheck
- depguard
- dogsled
- dupl
- errcheck
Expand Down
2 changes: 1 addition & 1 deletion f2_test/f2_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package f2_test
import "testing"

// dummy function necessary for compilation in Unix.
func setHidden(path string) error {
func setHidden(_ string) error {
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion find/find_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ package find
// isHidden checks if a file is hidden on Unix operating systems
// the nil error is returned to match the signature of the Windows
// version of the function.
func isHidden(filename, baseDir string) (bool, error) {
func isHidden(filename, _ string) (bool, error) {
return filename[0] == dotCharacter, nil
}

0 comments on commit 0cf7abc

Please sign in to comment.