Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ELSE (0.12 sec)

  1. .cm/plugins/filters/nullToEmpty/index.js

     * @example {{ readField('jvm', 'files') | nullToEmpty }}
     */
    function nullToEmpty(input) {
        let output;
        if (input) {
            output = input;
        } else {
            output = [];
        }
        console.log("nullToEmpty: " + output);
        return output;
    }
    
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:43:16 GMT 2024
    - 526 bytes
    - Viewed (0)
  2. .cm/plugins/filters/isEnabledAutomation/index.js

        let result;
        const automationActivations = enabled.get(automationName) || [];
    
        // Check if always enabled, or enabled by comment
        if (automationActivations.includes('always')) {
            result = true;
        } else {
            result = Object.values(pr.comments).some(comment => {
                const checks = extractCheckNames(comment.content);
                if (checks.includes(automationName)) {
                    return true;
                }
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. .cm/plugins/filters/summaryTable/index.js

        if (statistics.length > 1) {
            result += statistics.length + " platforms were affected";
        } else {
            result += "1 platform was affected";
        }
        if (platformsWithSignificantChanges.length > 1) {
            result += " (:warning: if possible, only one platform should have significant changes in a PR)";
        } else {
            result += " ";
        }
        return result;
    }
    
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. .cm/plugins/filters/readField/index.js

            if (result === undefined) {
                throw "readField: field '" + fieldName + "' not found on object named '" + objectName + "' with fields '" + Object.keys(group) + "'";
            } else {
                return result;
            }
        } else {
            console.log("readField: named object with field not found '" + objectName + '.' + fieldName + "'");
            return null;
        }
    }
    
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. .cm/plugins/filters/byCodeowner/ignore/index.js

    // .
    // ..
    const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
    
    const SLASH = '/'
    
    // Do not use ternary expression here, since "istanbul ignore next" is buggy
    let TMP_KEY_IGNORE = 'node-ignore'
    /* istanbul ignore else */
    if (typeof Symbol !== 'undefined') {
        TMP_KEY_IGNORE = Symbol.for('node-ignore')
    }
    const KEY_IGNORE = TMP_KEY_IGNORE
    
    const define = (object, key, value) =>
        Object.defineProperty(object, key, {value})
    
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top