Lint
This commit is contained in:
@@ -78,8 +78,8 @@ func onWindows() bool {
|
||||
}
|
||||
|
||||
func setup() {
|
||||
// No pretty JSON for testsm
|
||||
command.Opts.DisablePrettyJson = true
|
||||
// No pretty JSON for tests
|
||||
command.Opts.DisablePrettyJSON = true
|
||||
|
||||
out, err := exec.Command(
|
||||
testCommands["createdb"],
|
||||
|
||||
@@ -121,7 +121,7 @@ func (res *Result) CSV() []byte {
|
||||
func (res *Result) JSON() []byte {
|
||||
var data []byte
|
||||
|
||||
if command.Opts.DisablePrettyJson {
|
||||
if command.Opts.DisablePrettyJSON {
|
||||
data, _ = json.Marshal(res.Format())
|
||||
} else {
|
||||
data, _ = json.MarshalIndent(res.Format(), "", " ")
|
||||
|
||||
Reference in New Issue
Block a user