Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hedhyw committed Jun 2, 2024
1 parent 5a8f8a8 commit b680be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/jlv/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func TestGetStdinSource(t *testing.T) {
t.Run("Stat_error", func(t *testing.T) {
t.Parallel()

// nolint: err113 // Test.
errStat := errors.New(t.Name())

file := fakeFile{ErrStat: errStat}
Expand Down Expand Up @@ -99,7 +100,7 @@ type fakeFileInfo struct {
FileMode fs.FileMode
}

// Mode implements fs.FileInfo
// Mode implements fs.FileInfo.
func (f fakeFileInfo) Mode() fs.FileMode {
return f.FileMode
}

0 comments on commit b680be2

Please sign in to comment.