mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
chore(go-lint): fix golint warning (#133)
Fixes several go lint cases reported by go report. Signed-off-by: wiwen <shenggxhz@gmail.com>
This commit is contained in:
parent
639ead416e
commit
f5ae3ff476
25 changed files with 78 additions and 51 deletions
|
|
@ -108,6 +108,7 @@ func GetGitCommit() string {
|
|||
return strings.TrimSpace(string(output))
|
||||
}
|
||||
|
||||
// GetVersionDetails return version info from git commit
|
||||
func GetVersionDetails() string {
|
||||
return "zfs-" + strings.Join([]string{Get(), GetGitCommit()[0:7]}, "-")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue