From 64133126cdb842a047b2cd104c2f177f6e83f79a Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 11 Oct 2020 22:27:20 +0200 Subject: Update golangci-lint to version 1.31.0 (#13102) This PR updates golangci-lint to the latest version 1.31.0. The upgrade introduced a new check for which I've fixed or disabled most cases. Signed-off-by: kolaente --- modules/repository/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/repository') diff --git a/modules/repository/check.go b/modules/repository/check.go index 90186d6a29..274576c348 100644 --- a/modules/repository/check.go +++ b/modules/repository/check.go @@ -120,7 +120,7 @@ func gatherMissingRepoRecords(ctx context.Context) ([]*models.Repository, error) return nil }, ); err != nil { - if strings.HasPrefix("Aborted gathering missing repo", err.Error()) { + if strings.HasPrefix(err.Error(), "Aborted gathering missing repo") { return nil, err } if err2 := models.CreateRepositoryNotice("gatherMissingRepoRecords: %v", err); err2 != nil { -- cgit v1.2.3