summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2021-11-16 20:38:49 +0000
committerGitHub <noreply@github.com>2021-11-16 20:38:49 +0000
commitea0fe83888b08ca02edbb96b0e7f387a0c637a94 (patch)
tree991a0b9cb6f086609261f0110cf0f18203c13f7f /modules/auth
parent1cec7f5ab5e4a02b68a4223f1ad0166118a6e953 (diff)
downloadgitea-ea0fe83888b08ca02edbb96b0e7f387a0c637a94.tar.gz
gitea-ea0fe83888b08ca02edbb96b0e7f387a0c637a94.zip
Fix golangci-lint warnings (#17598 et al) (#17668)
Backport #17598 Backport #17606 Backport #17608 Backport #17609 - Since https://gitea.com/gitea/test-env/pulls/10 the golangci-lint has been upgraded and is erroring about new warnings in the code, this PR fixes those warnings.
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/pam/pam.go1
-rw-r--r--modules/auth/pam/pam_stub.go5
-rw-r--r--modules/auth/pam/pam_test.go1
3 files changed, 5 insertions, 2 deletions
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go
index f21602c6b5..6906a9da89 100644
--- a/modules/auth/pam/pam.go
+++ b/modules/auth/pam/pam.go
@@ -1,3 +1,4 @@
+//go:build pam
// +build pam
// Copyright 2014 The Gogs Authors. All rights reserved.
diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go
index 02d8da3c57..815ccf2b0e 100644
--- a/modules/auth/pam/pam_stub.go
+++ b/modules/auth/pam/pam_stub.go
@@ -1,9 +1,10 @@
-// +build !pam
-
// 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.
+//go:build !pam
+// +build !pam
+
package pam
import (
diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go
index fa16ff0fe7..d6d78a748b 100644
--- a/modules/auth/pam/pam_test.go
+++ b/modules/auth/pam/pam_test.go
@@ -1,3 +1,4 @@
+//go:build pam
// +build pam
// Copyright 2021 The Gitea Authors. All rights reserved.