Skip to content

Commit 821a132

Browse files
committed
add some omitempty
1 parent 4e3a627 commit 821a132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/collect/database_shared.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ package collect
22

33
type DatabaseConnection struct {
44
IsConnected bool `json:"isConnected"`
5-
Error string `json:"error"`
6-
Version string `json:"version"`
5+
Error string `json:"error,omitempty"`
6+
Version string `json:"version,omitempty"`
77
}

0 commit comments

Comments
 (0)