Skip to content

Commit 5ee8218

Browse files
Merge pull request #5 from tossthedev/fix/switch1-remove-solution
Fix/switch1 remove solution
2 parents 036f66e + 6b389b6 commit 5ee8218

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Exercises/01_control_flow/switch1.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ 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"
1715
default:
18-
// Add return statement
19-
"Invalid day"
2016
}
2117
}
2218

@@ -38,4 +34,4 @@ func main() {
3834
}
3935

4036
runTests()
41-
}
37+
}

0 commit comments

Comments
 (0)