Skip to content

Commit bf541d5

Browse files
committed
Fix go vet warnings about json struct tags
Looks like the `omitempty` belongs inside the string, not outside it.
1 parent a86acce commit bf541d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/uplink/protocol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ const (
8585

8686
type Message struct {
8787
Type string `json:"message-type"`
88-
Challenge []byte `json:"challenge",omitempty`
89-
Solution []byte `json:"solution",omitempty`
88+
Challenge []byte `json:"challenge,omitempty"`
89+
Solution []byte `json:"solution,omitempty"`
9090
}
9191

9292
func (m *Message) Marshal() ([]byte, error) {

0 commit comments

Comments
 (0)