Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix taskWorker #553

Merged
merged 7 commits into from
Jun 1, 2022
Merged

Fix taskWorker #553

merged 7 commits into from
Jun 1, 2022

Conversation

edolix
Copy link
Contributor

@edolix edolix commented Jun 1, 2022

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2022

🦋 Changeset detected

Latest commit: 5886c40

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@sw-internal/e2e-realtime-api Patch
@signalwire/realtime-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines 28 to 29
}
if (payload.id === lastPayload.id && payload.item === 'last') {
Copy link
Contributor

Choose a reason for hiding this comment

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

just for readability I'd use an else if here. for me separate ifs mean that both conditions can happen within the same run but in this case it seems that's not possible.

Suggested change
}
if (payload.id === lastPayload.id && payload.item === 'last') {
} else if (payload.id === lastPayload.id && payload.item === 'last') {

framini
framini previously approved these changes Jun 1, 2022
@edolix edolix merged commit 47ed171 into main Jun 1, 2022
@edolix edolix deleted the eg/fix-task-worker branch June 1, 2022 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants