fix: handle lint issues

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-08-04 21:49:14 -04:00
1 parent 5d8340d305
commit e68c04b9a6
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ func incrementTagVersion(appName string) (string, error) {
return "", fmt.Errorf("Unable to convert existing tag version (%s) to integer: %v", tag, err) return "", fmt.Errorf("Unable to convert existing tag version (%s) to integer: %v", tag, err)
} }
version += 1 version++
common.LogVerboseQuiet(fmt.Sprintf("Bumping tag to %d", version)) common.LogVerboseQuiet(fmt.Sprintf("Bumping tag to %d", version))
if err = common.PropertyWrite("registry", appName, "tag-version", strconv.Itoa(version)); err != nil { if err = common.PropertyWrite("registry", appName, "tag-version", strconv.Itoa(version)); err != nil {
return "", err return "", err
+1
View File
@@ -10,6 +10,7 @@ import (
"github.com/dokku/dokku/plugins/common" "github.com/dokku/dokku/plugins/common"
) )
// CommandLogin logs a user into the specified server
func CommandLogin(server string, username string, password string, passwordStdin bool) error { func CommandLogin(server string, username string, password string, passwordStdin bool) error {
if passwordStdin { if passwordStdin {
stdin, err := ioutil.ReadAll(os.Stdin) stdin, err := ioutil.ReadAll(os.Stdin)