Skip to content

Commit

Permalink
Fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Jul 21, 2022
1 parent 5c74a15 commit 9aed7f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tools/license_checker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ above 1.0.0 (thus not matched by the first line) until (and including)
2.3.0. The last line with catch everything that was passing the first
two lines i.e. everything after 2.3.0.

[spdx]: https://spdx.org/licenses/
[spdx]: https://spdx.org/licenses/
12 changes: 6 additions & 6 deletions tools/license_checker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ func main() {

if help || flag.NArg() > 1 {
//nolint:revive // We cannot do anything about possible failures here
fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s [options] [telegraf root dir]\n", os.Args[0])
fmt.Fprintf(flag.CommandLine.Output(), "Options:\n")
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s [options] [telegraf root dir]\n", os.Args[0])
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "Options:\n")
flag.PrintDefaults()
fmt.Fprintf(flag.CommandLine.Output(), "\n")
fmt.Fprintf(flag.CommandLine.Output(), "Arguments:\n")
fmt.Fprintf(flag.CommandLine.Output(), " telegraf root dir (optional)\n")
fmt.Fprintf(flag.CommandLine.Output(), " path to the root directory of telegraf (default: .)\n")
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "\n")
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "Arguments:\n")
_, _ = fmt.Fprintf(flag.CommandLine.Output(), " telegraf root dir (optional)\n")
_, _ = fmt.Fprintf(flag.CommandLine.Output(), " path to the root directory of telegraf (default: .)\n")
os.Exit(1)
}

Expand Down

0 comments on commit 9aed7f5

Please sign in to comment.