Skip to content

Commit 39afce2

Browse files
committed
Fix logic.
1 parent 2ca6344 commit 39afce2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • solarnet/datum/src/main/java/net/solarnetwork/central/datum/v2/support

solarnet/datum/src/main/java/net/solarnetwork/central/datum/v2/support/DatumUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ private DatumUtils() {
320320
c.setOffset(o);
321321

322322
// if tags provided, use those unless metadataFilter was already provided
323-
if ( c.getSearchFilter() == null
324-
|| c.getSearchFilter().isEmpty() && tags != null && tags.length > 0 ) {
323+
if ( (c.getSearchFilter() == null || c.getSearchFilter().isEmpty()) && tags != null
324+
&& tags.length > 0 ) {
325325
c.setSearchFilter(generateTagsSearchFilter(tags));
326326
}
327327

0 commit comments

Comments
 (0)