CIDARLAB / 3DuF

Found complex boolean return JS-W1041
Anti-pattern
Major
2 occurrences in this check
Boolean return can be simplified
448     * @memberof ComponentAPI
449     */
450    static isCustomType(threeduftypeString: string): boolean {
451        if (threeduftypeString in ComponentAPI.customTypes.keys()) {452            return true;453        }454        return false;
455    }
456
Boolean return can be simplified
254     * @memberof Feature
255     */
256    hasDefaultParam(key: string): boolean {
257        if (this.getDefaults().hasOwnProperty(key)) return true;258        else return false;259    }
260
261    /**