Commit bdf8f37
committed
addtags: Fix
With newer go versions, `go vet` reports:
```
cmd/addtags/main.go:19:25: non-constant format string in call to fmt.Fprintf
cmd/addtags/main.go:24:25: non-constant format string in call to fmt.Fprintf
```
This happens because of the use of [1:] to remove an unwanted `\n` at
the beginning of the string.
This commit switches to `Fprint` instead of `Fprintf` as there are no
substitutions to be made in the string.
Signed-off-by: Christophe Fergeau <[email protected]>go vet errors1 parent 2370251 commit bdf8f37
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments