Skip to content

Commit

Permalink
Fix golangci errors
Browse files Browse the repository at this point in the history
Signed-off-by: pacoorozco <[email protected]>
  • Loading branch information
pacoorozco committed Oct 15, 2024
1 parent 60230d9 commit 76f5e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/log/file_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func GetFileLogger(filename string) Logger {

logFile, err := os.OpenFile(Logdir+filename+".log", os.O_APPEND|os.O_CREATE|os.O_RDWR, os.ModePerm)
if err != nil {
newLogger.Warnf("Unable to open " + filename + " log file. Will log to stdout.")
newLogger.Warnf("Unable to open %s log file. Will log to stdout.", filename)
} else {
newLogger.logger.SetOutput(logFile)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/upload/album.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func runTemplateFunction(name string, args []string) (string, error) {

return regexpReplace(args[0], args[1], args[2])
default:
return "", fmt.Errorf("unknown function: " + name)
return "", fmt.Errorf("unknown function: %s", name)
}

return "", nil
Expand Down

0 comments on commit 76f5e2d

Please sign in to comment.