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