Skip to content

Commit

Permalink
make callback optional
Browse files Browse the repository at this point in the history
  • Loading branch information
xat committed Sep 14, 2014
1 parent 3520a86 commit 8bf264b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/controllers/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ MediaController.prototype.load = function(media, options, callback) {
});
};

function noop() {}

MediaController.prototype.sessionRequest = function(data, callback) {
data.mediaSessionId = this.currentSession.mediaSessionId;
callback = callback || noop;

this.request(data, function(err, response) {
if(err) return callback(err);
Expand Down

0 comments on commit 8bf264b

Please sign in to comment.