-
-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move check for --extra and --all-extras outside loop
Previously, an error would always be thrown when running `compile` with `--all-extras` on multiple source files containing extras. The reason was that the first iteration over the first source file would fill the `extras` variable, which in the second iteration would trigger an error since both `all_extras` and `extras` would be set. This change moves the check outside the loop and early in the script to avoid unnecessary processing before throwing the error.
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters