Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Kohli <[email protected]>
  • Loading branch information
Sidhant Kohli committed Jul 17, 2024
1 parent abe8cb2 commit b792add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/shared/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b792add

Please sign in to comment.