summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-05-02 23:22:45 +0800
committerGitHub <noreply@github.com>2022-05-02 23:22:45 +0800
commitc18d8d6968cb175703942631f0094ffb415f51f4 (patch)
treeeab9c1aee4f2eedf1e17323c74c3c7ada7256776 /modules/auth
parente2a3f3d259d230b7d1f62138e789ccdfd8f43b73 (diff)
downloadgitea-c18d8d6968cb175703942631f0094ffb415f51f4.tar.gz
gitea-c18d8d6968cb175703942631f0094ffb415f51f4.zip
Remove legacy `+build:` constraint (#19582)
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/pam/pam.go1
-rw-r--r--modules/auth/pam/pam_stub.go1
-rw-r--r--modules/auth/pam/pam_test.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go
index 1acd0b112c..39e93d7162 100644
--- a/modules/auth/pam/pam.go
+++ b/modules/auth/pam/pam.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build pam
-// +build pam
package pam
diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go
index 815ccf2b0e..414d7631b5 100644
--- a/modules/auth/pam/pam_stub.go
+++ b/modules/auth/pam/pam_stub.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !pam
-// +build !pam
package pam
diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go
index d6d78a748b..08565d2f31 100644
--- a/modules/auth/pam/pam_test.go
+++ b/modules/auth/pam/pam_test.go
@@ -1,5 +1,4 @@
//go:build pam
-// +build pam
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style