Skip to content

Commit

Permalink
refactor: resolve linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
  • Loading branch information
gabor-boros committed Jun 12, 2024
1 parent 86e7efe commit c5d8865
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/utils/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func NewProgressWriter(updateFrequency time.Duration) progress.Writer {
writer.SetAutoStop(true)
writer.SetTrackerPosition(progress.PositionRight)

writer.SetMessageWidth(50)
writer.SetMessageLength(50)
writer.SetUpdateFrequency(updateFrequency)

writer.Style().Colors = progress.StyleColorsDefault
Expand Down
4 changes: 3 additions & 1 deletion internal/pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ func TestExecCommandHelper(t *testing.T) {
}

_, _ = fmt.Fprint(os.Stdout, os.Getenv("STDOUT"))
exitCode, _ := strconv.Atoi(os.Getenv("EXIT_CODE"))
exitCode, err := strconv.Atoi(os.Getenv("EXIT_CODE"))
require.NoError(t, err)

os.Exit(exitCode)
}

Expand Down
4 changes: 3 additions & 1 deletion internal/pkg/client/timewarrior/timewarrior_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func TestExecCommandHelper(t *testing.T) {
}

_, _ = fmt.Fprint(os.Stdout, os.Getenv("STDOUT"))
exitCode, _ := strconv.Atoi(os.Getenv("EXIT_CODE"))
exitCode, err := strconv.Atoi(os.Getenv("EXIT_CODE"))
require.NoError(t, err)

os.Exit(exitCode)
}

Expand Down

0 comments on commit c5d8865

Please sign in to comment.