Skip to content

Commit

Permalink
Add go vet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ejcx committed Jul 27, 2018
1 parent 966d12d commit d751395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Main(cmd *cobra.Command, args []string, name string) {

api, err := cloudflare.New(os.Getenv("CF_API_KEY"), os.Getenv("CF_API_EMAIL"))
if err != nil {
log.Fatal("Could not initialize api object: %s", err)
log.Fatalf("Could not initialize api object: %s", err)
}
if serviceKey, ok := os.LookupEnv("CF_USER_SERVICE_KEY"); ok {
api.APIUserServiceKey = serviceKey
Expand All @@ -57,7 +57,7 @@ func Main(cmd *cobra.Command, args []string, name string) {
}
buf, err := json.MarshalIndent(r, " ", " ")
if err != nil {
log.Fatal("Could not make print resp: %s", err)
log.Fatalf("Could not make print resp: %s", err)
}
if string(buf) != "null" {
fmt.Println(string(buf))
Expand Down

0 comments on commit d751395

Please sign in to comment.