sanitize ./...

This commit is contained in:
nkanaev
2026-04-25 22:41:22 +01:00
parent cbe1f971a5
commit f01c26b2c2
8 changed files with 10 additions and 34 deletions

View File

@@ -32,7 +32,7 @@ func opt(envVar, defaultValue string) string {
func parseAuthfile(authfile io.Reader) (username, password string, err error) {
scanner := bufio.NewScanner(authfile)
for scanner.Scan() {
if scanner.Scan() {
line := scanner.Text()
parts := strings.SplitN(line, ":", 2)
if len(parts) != 2 {
@@ -40,7 +40,6 @@ func parseAuthfile(authfile io.Reader) (username, password string, err error) {
}
username = parts[0]
password = parts[1]
break
}
return username, password, nil
}