Skip to content

Commit

Permalink
fix: make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Jan 6, 2023
1 parent 0c8df5e commit aad1f9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -30,6 +30,7 @@ backend:
go build ${LDFLAGS}
go build ${LDFLAGS} -o ckmanpasswd cmd/password/password.go
go build ${LDFLAGS} -o migrate cmd/migrate/migrate.go
go build ${LDFLAGS} -o znodefix cmd/znodefix/znodefix.go

.PHONY: pre
pre:
Expand Down
5 changes: 5 additions & 0 deletions cmd/znodefix/znodefix.go
Expand Up @@ -59,6 +59,11 @@ func init() {
}

func main() {
if cmdOps.ShowVer {
fmt.Println("Build Timestamp:", BuildTimeStamp)
fmt.Println("Git Commit Hash:", GitCommitHash)
os.Exit(0)
}
if err := config.ParseConfigFile(cmdOps.ConfigFile, ""); err != nil {
fmt.Printf("Parse config file %s fail: %v\n", cmdOps.ConfigFile, err)
os.Exit(1)
Expand Down

0 comments on commit aad1f9f

Please sign in to comment.