mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Linting
This commit is contained in:
parent
328d3aaffd
commit
e359a0b36a
|
@ -142,7 +142,8 @@ func main() {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
serverKeyBytes, err := json.Marshal(serverKey)
|
var serverKeyBytes []byte
|
||||||
|
serverKeyBytes, err = json.Marshal(serverKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -198,7 +199,7 @@ func main() {
|
||||||
)
|
)
|
||||||
if a.Data != nil {
|
if a.Data != nil {
|
||||||
var jsonData interface{}
|
var jsonData interface{}
|
||||||
if err := json.Unmarshal(a.Data, &jsonData); err != nil {
|
if err = json.Unmarshal(a.Data, &jsonData); err != nil {
|
||||||
fmt.Printf("Supplied data is not valid json: %s\n", err)
|
fmt.Printf("Supplied data is not valid json: %s\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue