From 1e09bc0af31f5bb3ffdddd8fd3c12e0072a71e97 Mon Sep 17 00:00:00 2001 From: egibs <20933572+egibs@users.noreply.github.com> Date: Tue, 17 Dec 2024 09:10:39 -0600 Subject: [PATCH] Appease the linter Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> --- pkg/programkind/programkind.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/programkind/programkind.go b/pkg/programkind/programkind.go index a23a4816e..918e7c8bc 100644 --- a/pkg/programkind/programkind.go +++ b/pkg/programkind/programkind.go @@ -103,6 +103,8 @@ func makeFileType(path string, ext string, mime string) *FileType { } // File detects what kind of program this file might be. +// +//nolint:cyclop // ignore complexity of 38 func File(path string) (*FileType, error) { // Follow symlinks and return cleanly if the target does not exist _, err := filepath.EvalSymlinks(path)