henryken commented on a change in pull request #11564:
URL: https://github.com/apache/beam/pull/11564#discussion_r419240777
##########
File path: learning/katas/go/Core Transforms/Map/ParDo/pkg/task/task.go
##########
@@ -18,8 +18,9 @@ package task
import "github.com/apache/beam/sdks/go/pkg/beam"
func ApplyTransform(s beam.Scope, input beam.PCollection) beam.PCollection {
- processFn := func(element int) int {
- return element * 10
- }
- return beam.ParDo(s, processFn, input)
+ return beam.ParDo(s, multiplyBy10Fn, input)
}
+
+func multiplyBy10Fn(element int) int {
+ return element * 10
Review comment:
This looks good now
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]