diff options
Diffstat (limited to 'src/js/utils/promise.js')
-rw-r--r-- | src/js/utils/promise.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/utils/promise.js b/src/js/utils/promise.js index f45b46ab..4b59bba3 100644 --- a/src/js/utils/promise.js +++ b/src/js/utils/promise.js @@ -6,9 +6,9 @@ import is from './is'; * @param {Object} value An object that may or may not be `Promise`-like. */ export function silencePromise(value) { - if (is.promise(value)) { - value.then(null, () => {}); - } + if (is.promise(value)) { + value.then(null, () => {}); + } } export default { silencePromise }; |