Commit 82fab3d
authored
chore(filter): Add a switch statement (#1108)
* Add a switch statement
In the filter function a switch statement is added so that it is clear to the reader what happens when the arguments are of various lengths
* chore(filter): Add a switch statement
* code review suggestions
Remove the else block, it should never happen anyway because if it does then the user is misusing the function1 parent c9fc08c commit 82fab3d
1 file changed
+23
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 225 | + | |
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
236 | 251 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | 252 | | |
244 | 253 | | |
245 | 254 | | |
| |||
0 commit comments