Skip to content

Commit

Permalink
Fixed linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jan 15, 2025
1 parent f16d1c8 commit 41d6383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consolein/consolein.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (co *ConsoleIn) ReadLine(max uint8) (string, error) {
if co.systemPrefix != "" && strings.HasPrefix(text, co.systemPrefix) {

// Strip the prefix, and any spaces.
text := text[len(co.systemPrefix):]
text = text[len(co.systemPrefix):]
text = strings.TrimSpace(text)

// cd is a special command.
Expand Down
2 changes: 1 addition & 1 deletion static/static_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestEmpty(t *testing.T) {
t.Fatalf("error reading contents")
}

if len(files) != 0 {
if len(files) > 0 {
t.Fatalf("got files, but expected none")
}
}

0 comments on commit 41d6383

Please sign in to comment.