From b897d9fd64c9c58436d5e2152b91c3a0197d9387 Mon Sep 17 00:00:00 2001
From: Uttam Singh <uttamkhanduja@yahoo.in>
Date: Mon, 20 Sep 2021 11:26:29 +0530
Subject: [PATCH] minor changes

---
 cmd/geth/consolecmd.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go
index f84055191..62399fb36 100644
--- a/cmd/geth/consolecmd.go
+++ b/cmd/geth/consolecmd.go
@@ -134,11 +134,12 @@ func remoteConsole(ctx *cli.Context) error {
 				path = filepath.Join(path, "rinkeby")
 			} else if ctx.GlobalBool(utils.GoerliFlag.Name) {
 				path = filepath.Join(path, "goerli")
-			} else if (ctx.GlobalBool(utils.MumbaiFlag.Name) || ctx.GlobalBool(utils.BorMainnetFlag.Name)) {
+			} else if ctx.GlobalBool(utils.MumbaiFlag.Name) || ctx.GlobalBool(utils.BorMainnetFlag.Name) {
 				homeDir, _ := os.UserHomeDir()
 				path = filepath.Join(homeDir, "/.bor/data")
+			}
+			endpoint = fmt.Sprintf("%s/geth.ipc", path)
 		}
-		endpoint = fmt.Sprintf("%s/geth.ipc", path)
 	}
 	client, err := dialRPC(endpoint)
 	if err != nil {
-- 
GitLab