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

View File

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