Skip to content

Commit

Permalink
Remove unreachable code from enums example (#540)
Browse files Browse the repository at this point in the history
* remove unreachable code from switch in enums example

* run build/tools to generate static content in /public
  • Loading branch information
BigJayToDaIzo authored Jul 3, 2024
1 parent 5cd7f20 commit aa04b84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 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
}
4 changes: 2 additions & 2 deletions examples/enums/enums.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
7237bf811864fcd24b6d43341faf1af147a51b20
0hX2sAX1N6Q
097dc14a53f63735563f6f75314c30908aa46748
3zjUiM66KZe
18 changes: 4 additions & 14 deletions public/enums

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa04b84

Please sign in to comment.