-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Prism on handling empty and identity transforms #34566
base: master
Are you sure you want to change the base?
Conversation
inputID := getOnlyValue(t.GetInputs()) | ||
outputID := getOnlyValue(t.GetOutputs()) | ||
if inputID == outputID { | ||
shouldAdd = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use continue
here instead of adding a boolean to set and check. Reduces the cyclomatic complexity of the surrounding code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Assigning reviewers. If you would like to opt out of this review, comment R: @lostluck for label go. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
addresses #34564