Skip to content

Commit

Permalink
fix: generic task skipping for [] hashFolders
Browse files Browse the repository at this point in the history
  • Loading branch information
theomessin committed Feb 19, 2021
1 parent 5dfe86a commit 24afc6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flybywiresim/igniter",
"version": "1.1.0",
"version": "1.1.1",
"description": "An intelligent task runner written in Typescript.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Tasks/GenericTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class GenericTask implements Task {
}

protected shouldSkipCache(taskKey: string) {
if (this.context.cache === undefined) return false;
if (this.context.cache === undefined || this.hashFolders.length === 0) return false;

const cachedHash = this.context.cache.get(taskKey);
if (cachedHash === undefined) return false;
Expand Down

0 comments on commit 24afc6f

Please sign in to comment.