瀏覽代碼

chore: fix lint errors (#6620)

Joe Chen 3 年之前
父節點
當前提交
fa3d011415
共有 3 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      gogs.go
  2. 1 0
      internal/auth/pam/pam_stub.go
  3. 2 0
      internal/cmd/cert_stub.go

+ 1 - 0
gogs.go

@@ -1,3 +1,4 @@
+//go:build go1.14
 // +build go1.14
 // +build go1.14
 
 
 // Copyright 2014 The Gogs Authors. All rights reserved.
 // Copyright 2014 The Gogs Authors. All rights reserved.

+ 1 - 0
internal/auth/pam/pam_stub.go

@@ -1,3 +1,4 @@
+//go:build !pam
 // +build !pam
 // +build !pam
 
 
 // Copyright 2014 The Gogs Authors. All rights reserved.
 // Copyright 2014 The Gogs Authors. All rights reserved.

+ 2 - 0
internal/cmd/cert_stub.go

@@ -1,9 +1,11 @@
+//go:build !cert
 // +build !cert
 // +build !cert
 
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Copyright 2009 The Go Authors. All rights reserved.
 // Copyright 2014 The Gogs Authors. All rights reserved.
 // Copyright 2014 The Gogs Authors. All rights reserved.
 // Use of this source code is governed by a MIT-style
 // Use of this source code is governed by a MIT-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
+
 package cmd
 package cmd
 
 
 import (
 import (