From 5996947568cd8556ab0cbed95827d373e0fc62b5 Mon Sep 17 00:00:00 2001
From: Xavier Perret <xa.perret@outlook.com>
Date: Sun, 30 Oct 2022 15:07:54 +0100
Subject: [PATCH] removed useless code

---
 app/command-line/userinput.go | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/app/command-line/userinput.go b/app/command-line/userinput.go
index 34c5b1c..64943db 100644
--- a/app/command-line/userinput.go
+++ b/app/command-line/userinput.go
@@ -136,11 +136,7 @@ func ClientUserInputLoop(clientConfig Config, isAlsoServer bool) {
 		switch operation {
 		case "1":
 			fmt.Println("You chose to create a transaction")
-			if isAlsoServer {
-				fmt.Println("Not yet implemented!")
-				//newTrans := userCreatedTransaction(clientConfig)
-				//createTransaction(newTrans)
-			} else {
+			if !isAlsoServer {
 				newTrans := userCreatedTransaction(clientConfig)
 				utilities.PrintNeighbors(clientConfig.Neighbours)
 				fmt.Println("TRANSACTION READY TO BE SENT")
-- 
GitLab