Skip to content

Commit fc7bdfe

Browse files
committed
fix(switch1): remove premature solution
1 parent 036f66e commit fc7bdfe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Exercises/01_control_flow/switch1.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ func getDayType(_ day: String) -> String {
1010
switch day {
1111
case "Monday", "Tuesday", "Wednesday", "Thursday", "Friday":
1212
// Add return statement
13-
"Weekday"
1413
case "Saturday", "Sunday":
1514
// Add return statement
16-
"Weekend"
17-
default:
18-
// Add return statement
19-
"Invalid day"
2015
}
2116
}
2217

@@ -38,4 +33,4 @@ func main() {
3833
}
3934

4035
runTests()
41-
}
36+
}

0 commit comments

Comments
 (0)