Skip to content

Commit

Permalink
Revert changed check in arborist tracker condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 12, 2024
1 parent 93a68a6 commit 3a0de03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/arborist/lib/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = cls => class Tracker extends cls {
} else if (!hasTracker && subsection !== null) {
// 2. no parent tracker and subsection
this.#onError(`Parent tracker "${section}" does not exist`)
} else if (hasTracker || !hasSubtracker) {
} else if (!hasTracker || !hasSubtracker) {
// 3. existing parent tracker, no subsection tracker
// Create a new subtracker and update parents
const parentTracker = this.#progress.get(section)
Expand Down

0 comments on commit 3a0de03

Please sign in to comment.