M api/builds.go => api/builds.go +1 -1
@@ 192,7 192,7 @@ func (build buildStruct) String() string {
return str
}
- str += fmt.Sprintf("\n\n\033[4mBuild setup failed with:\033[0m\n\n")
+ str += "\n\n\033[4mBuild setup failed with:\033[0m\n\n"
str += getBuildErrors(setupLog, length)
for _, task := range build.Tasks {
if task.Status == "failed" {
M helpers/files.go => helpers/files.go +1 -1
@@ 15,7 15,7 @@ func EditFile(fileName string) error {
if editor == "" {
editor = os.Getenv("EDITOR")
if editor == "" {
- return errors.New("Please set up an editor in your config.ini")
+ return errors.New("please set up an editor in your config.ini")
}
}
editorPath, err := exec.LookPath(editor)
M helpers/logic.go => helpers/logic.go +1 -1
@@ 16,7 16,7 @@ func ValidateVisibility(visibility string) error {
return nil
}
}
- return errors.New("Not a valid visibility")
+ return errors.New("not a valid visibility")
}
// TransformTags formats a tag string as an array
M helpers/sourcehut.go => helpers/sourcehut.go +1 -1
@@ 2,7 2,7 @@ package helpers
import "strings"
-// TransformName takes a username and returns it as a canonical name
+// TransformCanonical takes a username and returns it as a canonical name
func TransformCanonical(username string) string {
if strings.HasPrefix(username, "~") {
return username