Skip to content

Commit

Permalink
fix: πŸ› check for preset in config
Browse files Browse the repository at this point in the history
The check if a preset in defined in the config was inverted and lead to error
  • Loading branch information
rexlManu committed Feb 16, 2022
1 parent 3f2d83d commit a6f1558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taskrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ const runningTasks = [];
export async function run(argv, config) {
const preset = argv.preset
? loadPreset(argv.preset)
: config.preset || config.preset == ''
: config.preset && config.preset != ''
? loadPreset(config.preset)
: config;

if (!preset) {
return;
}
Expand Down

0 comments on commit a6f1558

Please sign in to comment.