Skip to content

Commit

Permalink
Accept more lints
Browse files Browse the repository at this point in the history
  • Loading branch information
horgh committed Aug 18, 2018
1 parent 6fdc314 commit 300f4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions args.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func getArgs() *Args {
}

func printUsage(err error) {
_, _ = fmt.Fprintf(os.Stderr, "%s\n", err)
_, _ = fmt.Fprintf(os.Stderr, "Usage: %s <arguments>\n", os.Args[0])
_, _ = fmt.Fprintf(os.Stderr, "%s\n", err) // nolint: gas
_, _ = fmt.Fprintf(os.Stderr, "Usage: %s <arguments>\n", os.Args[0]) // nolint: gas
flag.PrintDefaults()
}
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func main() {
if cb.Restart {
log.Printf("Shutdown completed. Restarting...")

if err := syscall.Exec(
if err := syscall.Exec( // nolint: gas
binPath,
[]string{
binPath,
Expand Down Expand Up @@ -279,7 +279,7 @@ func newCatbox(configFile string) (*Catbox, error) {
SessionTicketsDisabled: true,
// Unfortunately it is usual to use self signed certificates with IRC. We
// need this to connect to such servers.
InsecureSkipVerify: true, // nolint: gosec
InsecureSkipVerify: true, // nolint: gosec,gas

// It would be nice to be able to be more restrictive on TLS version and
// ciphers, but in practice many clients do not support the strictest.
Expand Down

0 comments on commit 300f4bd

Please sign in to comment.