From d7513951a355a2ab71e7cabdce354039623d883f Mon Sep 17 00:00:00 2001 From: Evan Johnson Date: Fri, 27 Jul 2018 08:04:46 -0700 Subject: [PATCH] Add `go vet` fixes --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 7a65c8d..c41061d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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 @@ -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))