Fix allow.list file discovery bug

This commit is contained in:
Vikram Rangnekar 2019-08-03 11:08:16 -04:00
parent 4cba698f4a
commit 6fbc8587b2
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ func (al *allowList) save(item *allowItem) {
f, err := os.Create(al.filepath) f, err := os.Create(al.filepath)
if err != nil { if err != nil {
panic(err) logger.Warn().Err(err).Msg("Failed to write allow list to file")
return
} }
defer f.Close() defer f.Close()