Skip to content

Commit 300f4bd

Browse files
committed
Accept more lints
1 parent 6fdc314 commit 300f4bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

args.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func getArgs() *Args {
3939
}
4040

4141
func printUsage(err error) {
42-
_, _ = fmt.Fprintf(os.Stderr, "%s\n", err)
43-
_, _ = fmt.Fprintf(os.Stderr, "Usage: %s <arguments>\n", os.Args[0])
42+
_, _ = fmt.Fprintf(os.Stderr, "%s\n", err) // nolint: gas
43+
_, _ = fmt.Fprintf(os.Stderr, "Usage: %s <arguments>\n", os.Args[0]) // nolint: gas
4444
flag.PrintDefaults()
4545
}

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func main() {
221221
if cb.Restart {
222222
log.Printf("Shutdown completed. Restarting...")
223223

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

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

0 commit comments

Comments
 (0)