Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Sep 19, 2024
1 parent 0bef352 commit 5d79a94
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ linters:
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`. [fast: false, auto-fix: false]
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
- exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false]
- exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix: false]
#- forbidigo # Forbids identifiers [fast: false, auto-fix: false]
- forcetypeassert # finds forced type assertions [fast: true, auto-fix: false]
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid. [fast: true, auto-fix: false]
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/foomo/posh

go 1.21.0
go 1.23.0

require (
dario.cat/mergo v1.0.1
Expand Down
16 changes: 0 additions & 16 deletions pkg/util/files/exists.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/util/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func Prompt(txt string) (string, error) {
r := bufio.NewReader(os.Stdin)
if _, err := fmt.Fprintf(os.Stderr, txt+": "); err != nil {
if _, err := fmt.Fprint(os.Stderr, txt+": "); err != nil {
return "", err
}
out, err := r.ReadString('\n')
Expand Down

0 comments on commit 5d79a94

Please sign in to comment.