Skip to content

Commit

Permalink
Go fmt, one day we'll be friends
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjhumphrey committed May 7, 2021
1 parent e328b3d commit 46a09fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iamy.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package main

import (
"fmt"
"io/ioutil"
"log"
"os"
"fmt"
"path/filepath"
"reflect"
"regexp"
"strings"
"reflect"

"github.com/blang/semver/v4"
"gopkg.in/alecthomas/kingpin.v2"
Expand Down Expand Up @@ -102,7 +102,7 @@ func init() {
}

func performVersionChecks() {
currentIAMyVersion, _ := semver.Make(strings.TrimPrefix(Version,"v"))
currentIAMyVersion, _ := semver.Make(strings.TrimPrefix(Version, "v"))
log.Printf("current versions is %s\n", currentIAMyVersion)

if _, err := os.Stat(versionFileName); !os.IsNotExist(err) {
Expand All @@ -125,7 +125,7 @@ func performVersionChecks() {
os.Exit(1)
}
// Pay attention to build tags as well
if ! reflect.DeepEqual(localDesiredVersion.Build, currentIAMyVersion.Build) {
if !reflect.DeepEqual(localDesiredVersion.Build, currentIAMyVersion.Build) {
fmt.Printf(buildVersionMismatch, currentIAMyVersion, localDesiredVersion)
os.Exit(1)
}
Expand Down

0 comments on commit 46a09fa

Please sign in to comment.