Skip to content

Commit 38b7d30

Browse files
committed
cosmetic #10554
1 parent 9b8c7d9 commit 38b7d30

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/java/edu/harvard/iq/dataverse/search/SearchServiceBean.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1093,22 +1093,20 @@ private String getPermissionFilterQuery(DataverseRequest dataverseRequest, SolrQ
10931093
}
10941094
}
10951095

1096-
if (groupCounter > 1)
1097-
{
1096+
if (groupCounter > 1) {
10981097
// If there is more than one group, the parentheses must be added:
10991098
sbgroups.insert(0, "(");
11001099
sbgroups.append(")");
11011100
}
11021101

1103-
if (groupCounter > 0)
1104-
{
1102+
if (groupCounter > 0) {
11051103
// If there are any groups for this user, an extra join must be
11061104
// added to the query, and the extra sub-query must be added to
11071105
// the combined Solr query:
11081106
sb.append(" OR {!join from=" + SearchFields.DEFINITION_POINT + " to=id v=$q1}");
11091107
// Add the subquery to the combined Solr query:
11101108
solrQuery.setParam("q1", SearchFields.DISCOVERABLE_BY + ":" + sbgroups.toString());
1111-
logger.info("The sub-query q1 set to "+sbgroups.toString());
1109+
logger.info("The sub-query q1 set to " + SearchFields.DISCOVERABLE_BY + ":" + sbgroups.toString());
11121110
}
11131111

11141112
String ret = sb.toString();

0 commit comments

Comments
 (0)