Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Sep 6, 2024
1 parent 4710ad0 commit 4900be3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ linters:
enable:
- bodyclose
- dupl
- exportloopref
- goconst
- godot
- goimports
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func nameFromArgs(args []string) (string, error) {
func printFromKV(pf string, vs ...[]byte) {
nb := "(omitted binary data)"
fvs := make([]interface{}, 0)
isatty := term.IsTerminal(int(os.Stdin.Fd()))
isatty := term.IsTerminal(int(os.Stdin.Fd())) //nolint: gosec
for _, v := range vs {
if isatty && !showBinary && !utf8.Valid(v) {
fvs = append(fvs, nb)
Expand Down

0 comments on commit 4900be3

Please sign in to comment.