Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not update if already created
Browse files Browse the repository at this point in the history
pstreef committed Jul 26, 2024
1 parent 2fbadad commit e1481d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor(AtomicBoolean created) {
return new PropertiesVisitor<ExecutionContext>() {
@Override
public Properties visitFile(Properties.File file, ExecutionContext ctx) {
if ((created.get() || Boolean.TRUE.equals(overwriteExisting)) && path.equals(file.getSourcePath())) {
if (Boolean.TRUE.equals(overwriteExisting) &&path.equals(file.getSourcePath())) {
if (StringUtils.isBlank(fileContents)) {
return file.withContent(emptyList());
}

0 comments on commit e1481d0

Please sign in to comment.