CIDARLAB / 3DuF

Bad collection size comparison JS-W1031
Anti-pattern
Minor
1 occurrence in this check
Prefer > for comparing collection sizes with 0. >= 0 always evaluates to true
 54        }
 55
 56        let ports = Registry.featureSet.getComponentPorts(cleanparamdata, this.__type);
 57        if (ports !== undefined && ports.length >= 0 && ports !== null) { 58            for (let i in ports) {
 59                this.setPort(ports[i].label, ports[i]);
 60            }