Skip to content

Commit 593b236

Browse files
committed
cmdSwitches: cleanup source
1 parent 6e4ef5b commit 593b236

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cmdSwitches.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const presets = {
99

1010
module.exports = () => {
1111
let c = {};
12-
const customFlags = oaConfig.customFlags ? oaConfig.customFlags.split(' ') : [];
13-
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), customFlags)) {
12+
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' '))).concat((oaConfig.customFlags ?? '').split(' '))) {
1413
if (!x) continue;
1514
const [ k, v ] = x.split('=');
1615

0 commit comments

Comments
 (0)