Skip to content

Commit

Permalink
fix: Dry-run always used when used --delete-all
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
mountaindude committed May 8, 2022
1 parent 74ecd00 commit fa0b7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/deletedim.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const deleteMasterDimension = async (options) => {
} else {
// eslint-disable-next-line no-restricted-syntax
for (const item of deleteMasterItems) {
if (options.dryRun === false) {
if (options.dryRun === undefined || options.dryRun === false) {
// eslint-disable-next-line no-await-in-loop
const res = await app.destroyDimension(item.qInfo.qId);
if (res !== true) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/deletemeasure.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const deleteMasterMeasure = async (options) => {
} else {
// eslint-disable-next-line no-restricted-syntax
for (const item of deleteMasterItems) {
if (options.dryRun === false) {
if (options.dryRun === undefined || options.dryRun === false) {
// eslint-disable-next-line no-await-in-loop
const res = await app.destroyMeasure(item.qInfo.qId);
if (res !== true) {
Expand Down

0 comments on commit fa0b7db

Please sign in to comment.