Open stain88 opened 6 years ago
Oh, I see: no default
case in the sortArguments
, so it's not filtering by anything, so everything is kept.
I can work on this @stain88
All yours @mndominguez
@stain88 do you think that the default
case should include a push for each type of argument? If not, then I think the function should be broken down and refactored in four, one for languages, one for levels and so on.
I think a generic default
could work: if you ask for something that "isn't there", regardless of whether it is language, level, type, then nothing should be returned.
Of course, that would mean being extremely harsh with typos, or other spellings.
Agreed. I just opened a PR.
When I type any language, even anyone that doesn't exist like vbmvb
, it returns resources for python?
yeah this isn't complete yet, I'll rename the title
This shouldn't really happen