Remove old JSON warning

This commit is contained in:
Mike Farah
2024-03-23 17:17:23 +11:00
parent d9ef03a2d1
commit fbd4c8428a
2 changed files with 2 additions and 4 deletions
-4
View File
@@ -75,10 +75,6 @@ func initCommand(cmd *cobra.Command, args []string) (string, []string, error) {
outputFormat = "yaml"
}
} else if isAutomaticOutputFormat() {
// automatic input worked, we can do it for output too unless specified
if inputFormat == "json" {
yqlib.GetLogger().Warning("JSON file output is now JSON by default (instead of yaml). Use '-oy' or '--output-format=yaml' for yaml output")
}
outputFormat = inputFormat
}
} else if isAutomaticOutputFormat() {