mirror of
https://github.com/Luzifer/git-credential-vault.git
synced 2024-11-09 23:00:13 +00:00
Lint: Apply linter configuration
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4cf0f286df
commit
a94af1ce5c
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue