Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(client): fix type assertion panic error #416

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

shanezhiu
Copy link
Contributor

No description provided.

@shanezhiu
Copy link
Contributor Author

#415

if wfVal == nil {
return invoker(ctx, method, req, reply, cc, opts...)
}
wf, ok := wfVal.(*Workflow)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
wf, ok := wfVal.(*Workflow)
wf, _ := wfVal.(*Workflow)

Copy link
Contributor

Choose a reason for hiding this comment

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

这边一般不会出现 !ok了,假如出现了,就让他panic吧

@yedf2 yedf2 merged commit 2371a98 into dtm-labs:main May 15, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants