Linting and use latest golang image for tests.
This commit is contained in:
parent
6b519c31a0
commit
39ad633d45
@ -21,7 +21,7 @@ steps:
|
|||||||
- golangci-lint run
|
- golangci-lint run
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.13.4-alpine
|
image: golang:1.13.5-alpine
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
|
@ -83,7 +83,7 @@ func (sh Handler) ServeHTTP(respwriter http.ResponseWriter, req *http.Request) {
|
|||||||
|
|
||||||
err := json.Unmarshal(body, &slackmsg)
|
err := json.Unmarshal(body, &slackmsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Log.Error("Failed to decode JSON into SlackMessage struct: '%s'", err.Error())
|
c.Log.Errorf("Failed to decode JSON into SlackMessage struct: '%s'\n", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user