Skip to content

Commit

Permalink
Revert "Fix broken main.go after changing Yaml and Json option types."
Browse files Browse the repository at this point in the history
This reverts commit 0259c4b.
  • Loading branch information
josephburnett committed Jun 27, 2022
1 parent 0259c4b commit b8c8bc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func main() {
case diffMode:
printDiff(a, b, metadata)
case patchMode:
printPatch(a, b)
printPatch(a, b, metadata)
case translateMode:
printTranslation(a, metadata)
}
Expand Down Expand Up @@ -230,7 +230,7 @@ func printDiff(a, b string, metadata []jd.Metadata) {
}
}

func printPatch(p, a string) {
func printPatch(p, a string, metadata []jd.Metadata) {
diff, err := jd.ReadDiffString(p)
if err != nil {
errorAndExit(err.Error())
Expand All @@ -250,9 +250,9 @@ func printPatch(p, a string) {
}
var out string
if *yaml {
out = bNode.Yaml()
out = bNode.Yaml(metadata...)
} else {
out = bNode.Json()
out = bNode.Json(metadata...)
}
if *output == "" {
if out == "" {
Expand Down

0 comments on commit b8c8bc6

Please sign in to comment.