Skip to content

Commit

Permalink
remove unreachable code from switch in enums example
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJayToDaIzo committed Jul 3, 2024
1 parent 5cd7f20 commit 09fa53a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/enums/enums.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,4 @@ func transition(s ServerState) ServerState {
default:
panic(fmt.Errorf("unknown state: %s", s))
}

return StateConnected
}

0 comments on commit 09fa53a

Please sign in to comment.