Skip to content

Commit

Permalink
correcting numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBeale committed Aug 14, 2021
1 parent 0a722f2 commit 84fbee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions peirates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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...")
Expand Down

0 comments on commit 84fbee6

Please sign in to comment.