Skip to content

Commit

Permalink
fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
lostluck committed Jul 31, 2023
1 parent 680cf56 commit 201cf50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdks/go/pkg/beam/runners/prism/internal/handlerunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ func (h *runner) PrepareTransform(tid string, t *pipepb.PTransform, comps *pipep
// since the input collection and output collection types match.

// Get the input and output PCollections, there should only be 1 each.
if len(t.GetOutputs()) != 1 {
panic("Expected single putput PCollection in reshuffle: " + prototext.Format(t))
if len(t.GetInputs()) != 1 {
panic("Expected single input PCollection in reshuffle: " + prototext.Format(t))
}
if len(t.GetOutputs()) != 1 {
panic("Expected single putput PCollection in reshuffle: " + prototext.Format(t))
panic("Expected single output PCollection in reshuffle: " + prototext.Format(t))
}

inColID := getOnlyValue(t.GetInputs())
Expand Down

0 comments on commit 201cf50

Please sign in to comment.