Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.modal.delete("file requirement").then(() => {
if (this.inspector.isInspecting(listing[index].loc)) {
this.inspector.hide();
}
if (entryFromList instanceof ExpressionModel) {
entryFromList.clearIssue(ErrorCode.ALL);
} else if (entryFromList instanceof DirentModel) {
const {entry, entryName} = entryFromList;
entry.clearIssue(ErrorCode.ALL);
entryName.clearIssue(ErrorCode.ALL);
}
this.fileRequirement.listing = listing.slice(0, index).concat(listing.slice(index + 1));
this.update.next(this.fileRequirement.listing);
}, err => console.warn);
this.modal.delete("file requirement").then(() => {
if (this.inspector.isInspecting(listing[index].loc)) {
this.inspector.hide();
}
if (entryFromList instanceof ExpressionModel) {
entryFromList.clearIssue(ErrorCode.ALL);
} else if (entryFromList instanceof DirentModel) {
const {entry, entryName} = entryFromList;
entry.clearIssue(ErrorCode.ALL);
entryName.clearIssue(ErrorCode.ALL);
}
this.fileRequirement.listing = listing.slice(0, index).concat(listing.slice(index + 1));
this.update.next(this.fileRequirement.listing);
}, err => console.warn);