Skip to content

Commit 881668d

Browse files
authored
Remove explicit value for String-based enums
Event.rawValue is generated automatically for each case, so it's not necessary to add the string values manually.
1 parent 2594476 commit 881668d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
PeerKit.transceive("com-jpsim-myApp")
1010

1111
enum Event: String {
12-
case StartGame = "StartGame", EndGame = "EndGame"
12+
case StartGame, EndGame
1313
}
1414

1515
// Send a StartGame event with attached data to all peers

0 commit comments

Comments
 (0)