Skip to content

Commit

Permalink
Replaced !(... in ...) by ... notin ...
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Mar 14, 2024
1 parent e26cc3f commit 961b6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/util/Reflective.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ tuple[str,str] splitFileExtension(str path){
str getModuleName(loc moduleLoc, PathConfig pcfg){
modulePath = moduleLoc.path;

if(!(moduleLoc.extension in {"rsc", "tpl"})){
if(moduleLoc.extension notin {"rsc", "tpl"}){
throw "Not a Rascal source or tpl file: <moduleLoc>";
}

Expand Down

0 comments on commit 961b6ce

Please sign in to comment.