Skip to content

Commit

Permalink
Merge pull request #11 from GettEngineering/issue-10
Browse files Browse the repository at this point in the history
Close #10
  • Loading branch information
Ilya Buzlov authored Sep 22, 2020
2 parents fa07a44 + c852979 commit e47545c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/effe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

const (
version = "0.1.3"
version = "0.1.4"
)

func main() {
Expand Down
5 changes: 4 additions & 1 deletion strategies/blockcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (b *BlockContext) CalculateInput(calls []ComponentCall) {
var foundSourceOfArg bool
for _, previous := range calls[:index] {
if previous.Output() == nil {
break
continue
}
foundSourceOfArg = fields.FindFieldWithType(previous.Output().List, inputField.Type) != nil
if foundSourceOfArg {
Expand Down Expand Up @@ -65,6 +65,9 @@ func (b *BlockContext) CalculateOutput(calls []ComponentCall) {
for _, outputField := range c.Output().List {
var using bool
for _, next := range calls[index+1:] {
if next.Input() == nil {
continue
}
using = fields.FindFieldWithType(next.Input().List, outputField.Type) != nil
if using {
break
Expand Down

0 comments on commit e47545c

Please sign in to comment.