From fa3d011415c21a6e4d2e6500d589ca17cf39090f Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Fri, 24 Sep 2021 00:44:09 +0800 Subject: chore: fix lint errors (#6620) --- gogs.go | 1 + internal/auth/pam/pam_stub.go | 1 + internal/cmd/cert_stub.go | 2 ++ 3 files changed, 4 insertions(+) diff --git a/gogs.go b/gogs.go index 74458166..c602a95a 100644 --- a/gogs.go +++ b/gogs.go @@ -1,3 +1,4 @@ +//go:build go1.14 // +build go1.14 // Copyright 2014 The Gogs Authors. All rights reserved. diff --git a/internal/auth/pam/pam_stub.go b/internal/auth/pam/pam_stub.go index 9392eab5..65777fd2 100644 --- a/internal/auth/pam/pam_stub.go +++ b/internal/auth/pam/pam_stub.go @@ -1,3 +1,4 @@ +//go:build !pam // +build !pam // Copyright 2014 The Gogs Authors. All rights reserved. diff --git a/internal/cmd/cert_stub.go b/internal/cmd/cert_stub.go index 6164c83e..ddeb92b0 100644 --- a/internal/cmd/cert_stub.go +++ b/internal/cmd/cert_stub.go @@ -1,9 +1,11 @@ +//go:build !cert // +build !cert // Copyright 2009 The Go Authors. All rights reserved. // Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. + package cmd import ( -- cgit v1.2.3