Skip to content

Commit

Permalink
fix transformation output (bogus nils in putput)
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Sep 22, 2023
1 parent 1080f8d commit 313fe85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ func applyTransformations(filePattern []string, referencePattern string, ctproje
if !first {
fmt.Print("\n\n---\n\n")
}
fmt.Print(fileReplace(path, referencePattern, ctproject))
result, e := fileReplace(path, referencePattern, ctproject)
if e != nil {
return e
}
fmt.Print(result)
first = false
}
}
Expand Down

0 comments on commit 313fe85

Please sign in to comment.