Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 7830cf2

Browse files
committed
fix #13
1 parent 2a795f0 commit 7830cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gogs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func Version() string {
17-
return "0.7.0"
17+
return "0.7.1"
1818
}
1919

2020
// Client represents a Gogs API client.
@@ -66,7 +66,7 @@ func (c *Client) getResponse(method, path string, header http.Header, body io.Re
6666
return nil, errors.New("404 Not Found")
6767
}
6868

69-
if resp.StatusCode%100 != 2 {
69+
if resp.StatusCode/100 != 2 {
7070
errMap := make(map[string]interface{})
7171
if err = json.Unmarshal(data, &errMap); err != nil {
7272
return nil, err

0 commit comments

Comments
 (0)