go1.12: add nolint for gochecknoinits in mod_version.go
This commit is contained in:
parent
d3bc69dc5b
commit
407c3f0465
@ -7,6 +7,7 @@ import (
|
|||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//nolint:gochecknoinits
|
||||||
func init() {
|
func init() {
|
||||||
if info, available := debug.ReadBuildInfo(); available {
|
if info, available := debug.ReadBuildInfo(); available {
|
||||||
if date == "" && info.Main.Version != "(devel)" {
|
if date == "" && info.Main.Version != "(devel)" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user