Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit a94af1c

Browse files
committed
Lint: Apply linter configuration
Signed-off-by: Knut Ahlers <knut@ahlers.me>
1 parent 4cf0f28 commit a94af1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func main() {
5555
initApp()
5656

5757
var action string
58+
//nolint:gomnd // Just a count of cli arguments, no need to make a constant
5859
if len(rconfig.Args()) == 2 {
5960
action = rconfig.Args()[1]
6061
}
@@ -114,7 +115,7 @@ func readInput(input io.Reader) (map[string]string, error) {
114115
)
115116

116117
for scanner.Scan() {
117-
var text = strings.TrimSpace(scanner.Text())
118+
text := strings.TrimSpace(scanner.Text())
118119

119120
if text == "" {
120121
break

0 commit comments

Comments
 (0)