From 9a090f59596d1f9c4ecff2344f114fda240d2ed0 Mon Sep 17 00:00:00 2001 From: Alexander Korelskiy Date: Thu, 31 Mar 2022 22:56:59 +0300 Subject: [PATCH] Fix linter issue --- gateway/gateway.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index 6b20fdf76d..a2d572be67 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -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 }