From 84fbee6d970ff9a29176bb88fbf14dbd22bb97a9 Mon Sep 17 00:00:00 2001 From: Jay Beale Date: Fri, 13 Aug 2021 23:04:36 -0700 Subject: [PATCH] correcting numbering --- peirates.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/peirates.go b/peirates.go index 3198436..d0cbac9 100644 --- a/peirates.go +++ b/peirates.go @@ -886,8 +886,8 @@ Off-Menu + case "6", "decode": var token string println("\n1) Decode a JWT entered via a string.") - println("\n2) Decode a service account token stored here.") - println("\nPeirates:># ") + println("2) Decode a service account token stored here.") + println("Peirates:># ") fmt.Scanln(&input) switch input { @@ -911,7 +911,7 @@ Off-Menu + _, err := fmt.Sscan(input, &tokNum) if err != nil { fmt.Printf("Error parsing service account selection: %s\n", err.Error()) - } else if tokNum < 0 || tokNum >= len(serviceAccounts) { + } else if tokNum < 0 || tokNum > len(serviceAccounts) { fmt.Printf("Service account %d does not exist!\n", tokNum) } else if tokNum == 0 { println("Aborting service account switch...")