summaryrefslogtreecommitdiffstats
path: root/modules/templates
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/templates
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/templates')
-rw-r--r--modules/templates/dynamic.go1
-rw-r--r--modules/templates/static.go1
-rw-r--r--modules/templates/templates_bindata.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/modules/templates/dynamic.go b/modules/templates/dynamic.go
index c6c47a6c88..de6968c314 100644
--- a/modules/templates/dynamic.go
+++ b/modules/templates/dynamic.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
-// +build !bindata
package templates
diff --git a/modules/templates/static.go b/modules/templates/static.go
index cb2978c2ef..351e48b4da 100644
--- a/modules/templates/static.go
+++ b/modules/templates/static.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
-// +build bindata
package templates
diff --git a/modules/templates/templates_bindata.go b/modules/templates/templates_bindata.go
index 5b59e4447e..bcb2cbaf3f 100644
--- a/modules/templates/templates_bindata.go
+++ b/modules/templates/templates_bindata.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
-// +build bindata
package templates