chore: fix lint errors

This commit is contained in:
Oleg Lobanov 2020-09-11 16:02:16 +02:00
parent 65ac73414f
commit c5abbb4e1c
No known key found for this signature in database
GPG Key ID: 7CC64E41212621B0

View File

@ -144,7 +144,7 @@ user created with the credentials from options "username" and "password".`,
case server.Socket != "":
listener, err = net.Listen("unix", server.Socket)
checkErr(err)
socketPerm, err := cmd.Flags().GetUint32("socket-perm")
socketPerm, err := cmd.Flags().GetUint32("socket-perm") //nolint:govet
checkErr(err)
err = os.Chmod(server.Socket, os.FileMode(socketPerm))
checkErr(err)