Skip to content

Commit

Permalink
no need to check for scopeRecord being nil in Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed May 17, 2024
1 parent 754ad35 commit 963ca75
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions log/logtest/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,5 @@ func (l *logger) Reset() {
l.mu.Lock()
defer l.mu.Unlock()

if l.scopeRecord != nil {
l.scopeRecord.Records = nil
}
l.scopeRecord.Records = nil
}

0 comments on commit 963ca75

Please sign in to comment.