Skip to content

Commit

Permalink
return promise instead of using callback #35
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenGorenflo committed Jun 19, 2015
1 parent 0fa3da2 commit 17c87ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trip/trip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ class Trip {
* @param trip:json-object
* @param callback
*/
createTrip = (trip, callback) => {
this.util.createDocument(trip, callback);
createTrip = (trip) => {
return this.util.createDocument(trip);
};


Expand Down

0 comments on commit 17c87ee

Please sign in to comment.