Skip to content

Commit

Permalink
fix(config): allow user to remove all exfils for a given map (when tr…
Browse files Browse the repository at this point in the history
…ansits are enabled)
  • Loading branch information
Trap committed Dec 10, 2024
1 parent 9d4da44 commit 4abb426
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/config-analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ const getErrorsForExfils = (config: Config): string[] => {
errors.push(`${mapName} is now allowed as a map name in "exfiltrations"`);
}

// 2. check for map with no exfils
if (Object.keys(config.exfiltrations[mapName as MapName]).length === 0) {
// 2. check for map with no exfils (only when all transits are disabled)
if (
config.disable_all_transits &&
Object.keys(config.exfiltrations[mapName as MapName]).length === 0
) {
errors.push(`no exfils found for map ${mapName} in "exfiltrations"`);
}
});
Expand Down

0 comments on commit 4abb426

Please sign in to comment.