From 9e3f896b80fb72beaeebb1c94f991ad275bae2a9 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Tue, 6 Jun 2023 16:55:58 -0700 Subject: [PATCH] remove nil error print --- pki/nats.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pki/nats.go b/pki/nats.go index 98cf49a..15084ad 100644 --- a/pki/nats.go +++ b/pki/nats.go @@ -152,7 +152,9 @@ func ReloadNKeys() error { // DefaultTestOptions.Accounts if NatsServer != nil { err = NatsServer.ReloadOptions(&optsCopy) - log.Error(err) + if err != nil { + log.Error(err) + } } return err }