Skip to content

Commit 09b255e

Browse files
committed
fix for lint issue
1 parent 4622e95 commit 09b255e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hatchery/authz.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ var isUserAuthorizedForPayModels = func(userName string, allowedPayModels []stri
212212
}
213213
currentPayModel, err := getCurrentPayModel(userName)
214214
if err != nil {
215-
Config.Logger.Printf(fmt.Sprintf("Failed to get current pay model for user '%s', unable to check if user is authorized to launch container. Error: %s", userName, err.Error()))
215+
Config.Logger.Printf("Failed to get current pay model for user '%s', unable to check if user is authorized to launch container. Error: %s", userName, err.Error())
216216
return false, nil
217217
}
218218

main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"errors"
5-
"fmt"
65
"log"
76
"net/http"
87
"os"
@@ -36,12 +35,12 @@ func main() {
3635
logger := log.New(os.Stdout, "", log.LstdFlags)
3736
cleanPath, err := verifyPath(configPath)
3837
if err != nil {
39-
logger.Printf(fmt.Sprintf("Failed to load config - got %s", err.Error()))
38+
logger.Printf("Failed to load config - got %s", err.Error())
4039
return
4140
}
4241
config, err := hatchery.LoadConfig(cleanPath, logger)
4342
if err != nil {
44-
config.Logger.Printf(fmt.Sprintf("Failed to load config - got %s", err.Error()))
43+
config.Logger.Printf("Failed to load config - got %s", err.Error())
4544
return
4645
}
4746
hatchery.Config = config

0 commit comments

Comments
 (0)