Skip to content

Commit 20f20d3

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent b328123 commit 20f20d3

File tree

1 file changed

+2
-1
lines changed
  • libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements

1 file changed

+2
-1
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements/FilesEntitlement.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ public static FilesEntitlement build(List<Object> paths) {
229229
if (file.isEmpty() == false) {
230230
throw new PolicyValidationException("unknown key(s) [" + file + "] in a listed file for files entitlement");
231231
}
232-
int foundKeys = (pathAsString != null ? 1 : 0) + (relativePathAsString != null ? 1 : 0) + (pathSetting != null ? 1 : 0) + (relativePathSetting != null ? 1 : 0) + (modeAsString != null ? 1 : 0);
232+
int foundKeys = (pathAsString != null ? 1 : 0) + (relativePathAsString != null ? 1 : 0) + (pathSetting != null ? 1 : 0)
233+
+ (relativePathSetting != null ? 1 : 0) + (modeAsString != null ? 1 : 0);
233234
if (foundKeys != 1) {
234235
throw new PolicyValidationException(
235236
"files entitlement must contain one of [path, relative_path, path_setting, relative_path_setting] for every entry"

0 commit comments

Comments
 (0)