Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wwestgarth committed Feb 5, 2024
1 parent a315fed commit 58a8552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/frame_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (f *FrameReader) Read(p []byte) (n int, err error) {

// Prepend every log line
buff := bytes.NewBuffer([]byte{})
scanner := bufio.NewScanner(bytes.NewReader(frame.Data))
scanner := bufio.NewScanner(bytes.NewReader(frame.Data)) //nolint
for scanner.Scan() {
buff.Write([]byte(f.frame.Name))
buff.Write([]byte(": "))
Expand All @@ -86,7 +86,7 @@ func (f *FrameReader) Read(p []byte) (n int, err error) {
f.frameBytes = buff.Bytes()

// Store the total offset into the file
f.byteOffset = int(f.frame.Offset)
f.byteOffset = int(f.frame.Offset) //nolint
case <-unblock:
return 0, nil
case err := <-f.errCh:
Expand Down

0 comments on commit 58a8552

Please sign in to comment.