Cleanup for Codacy
This commit is contained in:
parent
ab3adc0329
commit
b87a52195c
@ -24,7 +24,6 @@
|
||||
package org.openrefine.wikidata.qa;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -46,7 +46,7 @@ public class QuantityScrutinizer extends SnakScrutinizer {
|
||||
}
|
||||
Set<ItemIdValue> allowedUnits = _fetcher.allowedUnits(pid);
|
||||
String currentUnit = null;
|
||||
if (value.getUnit() != null && value.getUnit() != "") {
|
||||
if (value.getUnit() != null && !value.getUnit().equals("")) {
|
||||
currentUnit = value.getUnit();
|
||||
}
|
||||
if(allowedUnits != null &&
|
||||
|
Loading…
Reference in New Issue
Block a user