mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-02 15:14:52 +08:00
explode when outputting to json
This commit is contained in:
@@ -136,14 +136,6 @@ func printResults(matchingNodes *list.List, writer io.Writer) error {
|
||||
colorsEnabled = true
|
||||
}
|
||||
|
||||
//always explode anchors when printing json
|
||||
if explodeAnchors || outputToJSON {
|
||||
errorExploding := explode(matchingNodes)
|
||||
if errorExploding != nil {
|
||||
return errorExploding
|
||||
}
|
||||
}
|
||||
|
||||
bufferedWriter := bufio.NewWriter(writer)
|
||||
defer safelyFlush(bufferedWriter)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user