Skip to content

Commit

Permalink
For better code specifications (#144)
Browse files Browse the repository at this point in the history
There is no need to use `Promise.prototype['finally']`
  • Loading branch information
BlackHole1 authored and ForbesLindesay committed Jan 13, 2018
1 parent 6ead556 commit bbf5c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finally.js
Expand Up @@ -3,7 +3,7 @@
var Promise = require('./core.js');

module.exports = Promise;
Promise.prototype['finally'] = function (f) {
Promise.prototype.finally = function (f) {
return this.then(function (value) {
return Promise.resolve(f()).then(function () {
return value;
Expand Down

0 comments on commit bbf5c44

Please sign in to comment.