diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-05-02 23:22:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 23:22:45 +0800 |
commit | c18d8d6968cb175703942631f0094ffb415f51f4 (patch) | |
tree | eab9c1aee4f2eedf1e17323c74c3c7ada7256776 /modules/graceful | |
parent | e2a3f3d259d230b7d1f62138e789ccdfd8f43b73 (diff) | |
download | gitea-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/graceful')
-rw-r--r-- | modules/graceful/manager_unix.go | 1 | ||||
-rw-r--r-- | modules/graceful/manager_windows.go | 1 | ||||
-rw-r--r-- | modules/graceful/net_unix.go | 1 | ||||
-rw-r--r-- | modules/graceful/net_windows.go | 1 | ||||
-rw-r--r-- | modules/graceful/restart_unix.go | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go index b22b7b5860..9d3816e9c2 100644 --- a/modules/graceful/manager_unix.go +++ b/modules/graceful/manager_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !windows -// +build !windows package graceful diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go index 66baddfa38..e7e619f53f 100644 --- a/modules/graceful/manager_windows.go +++ b/modules/graceful/manager_windows.go @@ -4,7 +4,6 @@ // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build windows -// +build windows package graceful diff --git a/modules/graceful/net_unix.go b/modules/graceful/net_unix.go index 6ffa8150cc..680ff529af 100644 --- a/modules/graceful/net_unix.go +++ b/modules/graceful/net_unix.go @@ -4,7 +4,6 @@ // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build !windows -// +build !windows package graceful diff --git a/modules/graceful/net_windows.go b/modules/graceful/net_windows.go index 35b7a9d1fe..07ae51b8dd 100644 --- a/modules/graceful/net_windows.go +++ b/modules/graceful/net_windows.go @@ -4,7 +4,6 @@ // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build windows -// +build windows package graceful diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go index 9969e007c3..2654ddfb94 100644 --- a/modules/graceful/restart_unix.go +++ b/modules/graceful/restart_unix.go @@ -4,7 +4,6 @@ // This code is heavily inspired by the archived gofacebook/gracenet/net.go handler //go:build !windows -// +build !windows package graceful |