Skip to content

Commit 01afef1

Browse files
committed
feat(cordova-raw): use cdv promise
1 parent 3c154c1 commit 01afef1

File tree

1 file changed

+1
-9
lines changed
  • lib/targets/cordova/tasks

1 file changed

+1
-9
lines changed

lib/targets/cordova/tasks/raw.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ module.exports = Task.extend({
1212
api: undefined,
1313

1414
cordovaPromise(/* rawArgs */) {
15-
let args = Array.prototype.slice.call(arguments);
16-
let defer = new RSVP.defer();
17-
args.push(function() {
18-
return defer.resolve();
19-
});
20-
21-
cordovaProj[this.api].apply(this, args);
22-
23-
return defer.promise;
15+
return cordovaProj[this.api].apply(null, arguments)
2416
},
2517

2618
run() {

0 commit comments

Comments
 (0)