From b792adde9faa1f6ea106bebca4f5d686b9b4fba3 Mon Sep 17 00:00:00 2001 From: Sidhant Kohli Date: Wed, 17 Jul 2024 12:06:30 -0700 Subject: [PATCH] refactor Signed-off-by: Sidhant Kohli --- pkg/shared/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/shared/util.go b/pkg/shared/util.go index b3c1815a..93fc7c4a 100644 --- a/pkg/shared/util.go +++ b/pkg/shared/util.go @@ -18,7 +18,7 @@ const ( func PrepareServer(sockAddr string, infoFilePath string, serverInfo *info.ServerInfo) (net.Listener, error) { // If serverInfo is not provided, then create a default server info instance. - if serverInfo != nil { + if serverInfo == nil { serverInfo = info.GetDefaultServerInfo() } // If infoFilePath is not empty, write the server info to the file.