Skip to content

Commit 15c5882

Browse files
committed
formating to pass linter
1 parent 93d717e commit 15c5882

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/pouch-utils.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
'use strict';
22

3-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
3+
function _interopDefault (ex) {
4+
if(ex && (typeof ex === 'object') && 'default' in ex) {
5+
return ex['default'];
6+
}
7+
return ex;
8+
}
9+
410
var Promise = typeof Promise === 'function' ? Promise : _interopDefault(require('pouchdb-promise'));
511
/* istanbul ignore next */
612
exports.once = function (fun) {

0 commit comments

Comments
 (0)