Fixed missing ?

This commit is contained in:
Marcin Grzejszczak
2022-11-22 11:57:24 +01:00
parent 9e536c8273
commit 9b9514d64b

View File

@@ -250,7 +250,7 @@ class ContractsCopyTask extends DefaultTask {
return;
}
if (failOnNoContracts.get() && (file == null || !file.exists() || file.listFiles().length == 0)) {
String path = file != null file.getAbsolutePath() : "";
String path = file != null ? file.getAbsolutePath() : "";
throw new GradleException("Contracts could not be found: [" + path
+ "]\nPlease make sure that the contracts were defined, or set the [failOnNoContracts] flag to [false]");
}