Skip to content

Conversation

@max-baz
Copy link
Member

@max-baz max-baz commented Sep 27, 2019

Addressing comments in #173

@max-baz
Copy link
Member Author

max-baz commented Sep 27, 2019

Merging as I feel confident this is what you had in mind, if you have comments, do leave them 😉

@max-baz max-baz merged commit 1292554 into browserpass:master Sep 27, 2019
badgeCache = {
files: response.data.files,
settings: settings,
expires: Date.now() + 60 * 1000,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't use magic numbers.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 will extract


if (badgeCache.files === null) {
return; // badge cache refresh in progress
if (badgeCache.isRefreshing) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't this condition belong at the very beginning of the function?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, it does, remnants of the previous logic 👍

fkneist pushed a commit to fkneist/browserpass-extension that referenced this pull request Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants