Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Feb 2, 2024
1 parent f68c656 commit 5371042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ nfpms:
priority: extra
provides:
- xt
signing
rpm:
signature:
key_file: "{{ .Env.GPG_SIGNING_KEY }}"
Expand Down
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {

// Get 1 job and other flag info from cli args.
cliJob, flags := parseFlags(pwd)
printVer(flags.PrintVer)
flags.printVer()

// Read in jobs from 1 or more job files.
jobs, err := xt.ParseJobs(flags.JobFiles)
Expand All @@ -81,8 +81,10 @@ func main() {
}
}

func printVer(print bool) {
if !print {
// printVer prints the version and exits.
// Only if the user passed -v or --version.
func (f *flags) printVer() {
if !f.PrintVer {
return
}

Expand Down

0 comments on commit 5371042

Please sign in to comment.