Skip to content

Commit

Permalink
fix: remove bug guard because crash is better than this
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Apr 25, 2021
1 parent 14ce7f7 commit 1c0b430
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ func (s *Store) setIncidentIfNeed(r Record, needCallback bool) {
}

func (s *Store) appendWithoutLock(rs []Record) {
if s.file == nil {
os.Stderr.Write([]byte("log file isn't opened. may be bug.\n"))
return
}

for _, r := range rs {
r = r.Sanitize()

Expand Down

0 comments on commit 1c0b430

Please sign in to comment.