Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Conversation

@ruslan-bikkinin
Copy link
Contributor

Due to promise usage in ios postlink script all postlink scripts should be promisified. This PR provide fix for this.

Also its related to #999

@msftclas
Copy link

@ruslan-bikkinin,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

];

//run them sequentially
var result = postlinks.reduce((p, fn) => p.then(fn), Promise.resolve());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need result variable here?
Would it probably better to do the following:

postlinks.reduce((p, fn) => p.then(fn), Promise.resolve())
    .catch((err) => {
        console.error(err.message);
    });

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at all, I'll simplify it as you suggested, @sergey-akhalkov, thx!

@fungilation
Copy link

Confirmed fix: #999 (comment)

@ruslan-bikkinin ruslan-bikkinin merged commit b449441 into microsoft:master Sep 19, 2017
@ruslan-bikkinin ruslan-bikkinin deleted the fix-postlink branch September 19, 2017 14:07
ruslan-bikkinin added a commit to ruslan-bikkinin/react-native-code-push that referenced this pull request Sep 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants