Skip to content

Commit 865045c

Browse files
author
Dean Karn
committed
misc updates
1 parent fe5cf5a commit 865045c

File tree

5 files changed

+3
-403
lines changed

5 files changed

+3
-403
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ linters-install:
99

1010
lint: linters-install
1111
@gofmt -l . >gofmt.test 2>&1 && if [ -s gofmt.test ]; then echo "Fix formatting using 'gofmt -s -w .' for:"; cat gofmt.test; exit 1; fi && rm gofmt.test
12-
gometalinter --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=maligned --enable=megacheck --enable=ineffassign --enable=misspell --enable=errcheck --enable=goconst ./...
12+
gometalinter --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=megacheck --enable=ineffassign --enable=misspell --enable=errcheck --enable=goconst ./...
1313

1414
test:
1515
$(GOCMD) test -cover -race ./...

github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
152152
return nil, ErrMissingHubSignatureHeader
153153
}
154154
mac := hmac.New(sha1.New, []byte(hook.secret))
155-
mac.Write(payload)
155+
_, _ = mac.Write(payload)
156156
expectedMAC := hex.EncodeToString(mac.Sum(nil))
157157

158158
if !hmac.Equal([]byte(signature[5:]), []byte(expectedMAC)) {

gogs/gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
120120
}
121121

122122
mac := hmac.New(sha256.New, []byte(hook.secret))
123-
mac.Write(payload)
123+
_, _ = mac.Write(payload)
124124

125125
expectedMAC := hex.EncodeToString(mac.Sum(nil))
126126

webhooks.go

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)