~xenrox/srhtctl

fb56a7faba063ce0261f6182257f0a0196ba2643 — Thorben Günther 2 years ago b1f55d9
Make linters happy
4 files changed, 4 insertions(+), 4 deletions(-)

M api/builds.go
M helpers/files.go
M helpers/logic.go
M helpers/sourcehut.go
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