mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Fix gofmt issues
See, $ gometalinter --disable-all --enable=gofmt --deadline 10m --vendor ./... build.go:1:⚠️ file is not gofmted with -s (gofmt) scripts/build/release_publisher/externalrelease.go:1:⚠️ file is not gofmted with -s (gofmt) scripts/build/release_publisher/localrelease.go:1:⚠️ file is not gofmted with -s (gofmt) scripts/build/release_publisher/main.go:1:⚠️ file is not gofmted with -s (gofmt) scripts/build/release_publisher/publisher_test.go:1:⚠️ file is not gofmted with -s (gofmt)
This commit is contained in:
parent
46ebe245ab
commit
8c04926326
2
build.go
2
build.go
@ -639,7 +639,7 @@ func shaFile(file string) error {
|
|||||||
|
|
||||||
func shortenBuildId(buildId string) string {
|
func shortenBuildId(buildId string) string {
|
||||||
buildId = strings.Replace(buildId, "-", "", -1)
|
buildId = strings.Replace(buildId, "-", "", -1)
|
||||||
if (len(buildId) < 9) {
|
if len(buildId) < 9 {
|
||||||
return buildId
|
return buildId
|
||||||
}
|
}
|
||||||
return buildId[0:8]
|
return buildId[0:8]
|
||||||
|
Loading…
Reference in New Issue
Block a user