more review feedback

This commit is contained in:
Guillaume Ballet 2019-06-04 17:25:35 +02:00
parent 2319f44b21
commit 4c9a675896

View file

@ -1161,7 +1161,7 @@ func setSmartCard(ctx *cli.Context, cfg *node.Config) {
// Sanity check that the smartcard path is valid // Sanity check that the smartcard path is valid
fi, err := os.Stat(path) fi, err := os.Stat(path)
if err != nil { if err != nil {
log.Info("Smartcard socket not found, disabling", "path", path, "err", err) log.Info("Smartcard socket not found, disabling", err", err)
return return
} }
if fi.Mode()&os.ModeType != os.ModeSocket { if fi.Mode()&os.ModeType != os.ModeSocket {