Skip to content

Commit

Permalink
Missing from #1442 - FileSignature target must exist
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 9, 2023
1 parent 45b3ea4 commit d507c39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public KotlinGradleExtension(SpotlessExtension spotless) {
public KotlinFormatExtension ktlint(String version) throws IOException {
Objects.requireNonNull(version, "version");
File defaultEditorConfig = getProject().getRootProject().file(".editorconfig");
FileSignature editorConfigPath = FileSignature.signAsList(defaultEditorConfig);
FileSignature editorConfigPath = defaultEditorConfig.exists() ? FileSignature.signAsList(defaultEditorConfig) : null;
return new KotlinFormatExtension(version, false, editorConfigPath, Collections.emptyMap(), Collections.emptyMap());
}

Expand Down

0 comments on commit d507c39

Please sign in to comment.