You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/08/19 14:42:33 UTC

[GitHub] [beam] damccorm commented on a diff in pull request #22796: [Go SDK] Fix go lint errors

damccorm commented on code in PR #22796:
URL: https://github.com/apache/beam/pull/22796#discussion_r950266281


##########
sdks/go/pkg/beam/core/graph/fn.go:
##########
@@ -1272,9 +1272,8 @@ func validateState(fn *DoFn, numIn mainInputs) error {
 				err := errors.Errorf("Duplicate state key %v", k)
 				return errors.SetTopLevelMsgf(err, "Duplicate state key %v used by %v and %v. Ensure that state keys are"+
 					"unique per DoFn", k, orig, s)
-			} else {
-				stateKeys[k] = s
 			}
+			stateKeys[k] = s

Review Comment:
   There's another similar violation on line 1281 that needs fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org