Fix linter issue

This commit is contained in:
Alexander Korelskiy
2022-03-31 22:56:59 +03:00
parent 1c74aa6cbe
commit 9a090f5959

View File

@@ -312,7 +312,10 @@ func (gw *Gateway) ignoreFilesComment(extra map[string][]interface{}, igMessages
return false
}
for _, f := range extra["file"] {
fi := f.(config.FileInfo)
fi, ok := f.(config.FileInfo)
if !ok {
continue
}
if gw.ignoreText(fi.Comment, igMessages) {
return true
}