Skip to content
Snippets Groups Projects
Commit ecaaa793 authored by Xavier Perret's avatar Xavier Perret
Browse files

removed useless cases

parent 841fd6d8
No related branches found
No related tags found
1 merge request!2added file to separate client function from the server
...@@ -68,7 +68,7 @@ func UserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) { ...@@ -68,7 +68,7 @@ func UserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) {
fmt.Println("2. Rate a transaction (from the client)") fmt.Println("2. Rate a transaction (from the client)")
fmt.Println("3. Fabricate a fake transaction") fmt.Println("3. Fabricate a fake transaction")
fmt.Println("4. Print all transactions") fmt.Println("4. Print all transactions")
fmt.Println("8. Exit") fmt.Println("6. Exit")
fmt.Print("Your choice: ") fmt.Print("Your choice: ")
_, err := fmt.Scanln(&operation) _, err := fmt.Scanln(&operation)
if err != nil { if err != nil {
...@@ -173,12 +173,8 @@ func UserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) { ...@@ -173,12 +173,8 @@ func UserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) {
fmt.Println("You chose to ask for all transactions of a given node") fmt.Println("You chose to ask for all transactions of a given node")
break break
case "6": case "6":
break
case "7":
break
case "8":
fmt.Println("You chose to exit") fmt.Println("You chose to exit")
os.Exit(0) return
default: default:
fmt.Println("You chose an invalid option") fmt.Println("You chose an invalid option")
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment