1
0
Fork 0
mirror of https://github.com/Luzifer/git-credential-vault.git synced 2024-12-23 03:01:17 +00:00

Lint: Apply linter configuration

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-01-22 03:31:03 +01:00
parent 4cf0f286df
commit a94af1ce5c
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -55,6 +55,7 @@ func main() {
initApp() initApp()
var action string var action string
//nolint:gomnd // Just a count of cli arguments, no need to make a constant
if len(rconfig.Args()) == 2 { if len(rconfig.Args()) == 2 {
action = rconfig.Args()[1] action = rconfig.Args()[1]
} }
@ -114,7 +115,7 @@ func readInput(input io.Reader) (map[string]string, error) {
) )
for scanner.Scan() { for scanner.Scan() {
var text = strings.TrimSpace(scanner.Text()) text := strings.TrimSpace(scanner.Text())
if text == "" { if text == "" {
break break