Skip to content

Commit

Permalink
refactor(meta): Improve short version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom5521 committed Jan 11, 2025
1 parent cdb9655 commit 98e698d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions meta/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@ import (
var (
//go:embed version.txt
LongVersion string
Version string
Version = strings.SplitN(LongVersion, "-", 2)[0]
)

func init() {
parts := strings.SplitN(LongVersion, "-", 2)
Version = parts[0]
}

0 comments on commit 98e698d

Please sign in to comment.