How to use the resolve function from q

Find comprehensive JavaScript q.resolve code examples handpicked from public code repositorys.

31
32
33
34
35
36
37
38
39
40
    // Use https:// rather than git:// (PR #2611)
    this._source = this._source.replace('git://', 'https://');

    // Enable shallow clones for GitHub repos
    this._shallowClone = function() {
        return Q.resolve(true);
    };
}

util.inherits(GitHubResolver, GitRemoteResolver);
fork icon0
star icon0
watch icon722