Skip to content

Commit

Permalink
formating to pass linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoVogt committed Jun 23, 2019
1 parent 93d717e commit 073b607
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/pouch-utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
function _interopDefault (ex) {
if(ex && (typeof ex === 'object') && 'default' in ex) {
return ex['default']
}
return ex;
}

var Promise = typeof Promise === 'function' ? Promise : _interopDefault(require('pouchdb-promise'));
/* istanbul ignore next */
exports.once = function (fun) {
Expand Down

0 comments on commit 073b607

Please sign in to comment.