Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sas1024 committed Mar 31, 2022
1 parent 1c74aa6 commit 9a090f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9a090f5

Please sign in to comment.