diff options
author | Ofek <ofekshilon@gmail.com> | 2024-01-13 18:35:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 18:35:11 +0200 |
commit | 21fe5523c0594ea79846e57b6c98f0761f76b30f (patch) | |
tree | 1c7f0988352bb13b6513378ba9952ee0219d45b6 /lib/compilers/tinyc.ts | |
parent | f3277b8aed2ca12ce961d08ef792c4061a3331ac (diff) | |
download | compiler-explorer-21fe5523c0594ea79846e57b6c98f0761f76b30f.tar.gz compiler-explorer-21fe5523c0594ea79846e57b6c98f0761f76b30f.zip |
Since ES6 there's no reason to use `underscore`s map and filter (#5989)gh-10149
Mindless replacements of the form
`_.filter(options, option =>...` --> `options.filter(option =>...`.
One not *entirely* mindless replacement at the bottom of
compiler-dropin-tool.ts :
```
- return _.filter(pathFilteredFlags) as string[];
+ return pathFilteredFlags.filter(Boolean) as string[];
```
6 files can now stop importing underscore.
Diffstat (limited to 'lib/compilers/tinyc.ts')
-rw-r--r-- | lib/compilers/tinyc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/tinyc.ts b/lib/compilers/tinyc.ts index 73ee8817b..7972f4805 100644 --- a/lib/compilers/tinyc.ts +++ b/lib/compilers/tinyc.ts @@ -45,6 +45,6 @@ export class TinyCCompiler extends BaseCompiler { } override filterUserOptions(userOptions) { - return _.filter(userOptions, opt => opt !== '-run'); + return userOptions.filter(opt => opt !== '-run'); } } |