Skip to content

Commit

Permalink
Merge pull request #30 from meant4/RE-24
Browse files Browse the repository at this point in the history
fixing misspels found by goreportcard.com and adding badge from gorep…
  • Loading branch information
panperla authored Feb 15, 2024
2 parents 27aa197 + 632bc74 commit a5f0433
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# reamaze-go: Re:amaze Golang API Client

![testing](https://github.com/meant4/reamaze-go/actions/workflows/tests.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/meant4/reamaze-go)](https://goreportcard.com/badge/github.com/meant4/reamaze-go)
[![codecov](https://codecov.io/gh/meant4/reamaze-go/graph/badge.svg?token=R6888TMAL6)](https://codecov.io/gh/meant4/reamaze-go)
[![License](https://img.shields.io/github/license/meant4/reamaze-go)](https://github.com/meant4/reamaze-go/blob/main/LICENSE)
[![godoc](https://godoc.org/github.com/meant4/reamaze-go?status.svg)](https://pkg.go.dev/github.com/meant4/[email protected]/reamaze)
Expand Down
6 changes: 3 additions & 3 deletions reamaze/notes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestClient_CreateNote(t *testing.T) {
wantErr: true,
},
{
name: "Testing incorect endpoint reponse",
name: "Testing incorrect endpoint response",
fields: fields{baseURL: "https://dummy.reamaze.io", auth: "dummy", httpClient: &http.Client{
Transport: RoundTripFunc(func(req *http.Request) *http.Response {
return &http.Response{
Expand All @@ -168,7 +168,7 @@ func TestClient_CreateNote(t *testing.T) {
wantErr: true,
},
{
name: "Testing incorect JSON reponse",
name: "Testing incorrect JSON response",
fields: fields{baseURL: "https://dummy.reamaze.io", auth: "dummy", httpClient: &http.Client{
Transport: RoundTripFunc(func(req *http.Request) *http.Response {
return &http.Response{
Expand All @@ -183,7 +183,7 @@ func TestClient_CreateNote(t *testing.T) {
wantErr: true,
},
{
name: "Testing correct reponse",
name: "Testing correct response",
fields: fields{baseURL: "https://dummy.reamaze.io", auth: "dummy", httpClient: &http.Client{
Transport: RoundTripFunc(func(req *http.Request) *http.Response {
return &http.Response{
Expand Down
2 changes: 1 addition & 1 deletion reamaze/reamaze.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *Client) reamazeRequest(method string, endpoint string, payload []byte)
return nil, err
}
defer res.Body.Close()
// Checking if we have response status code withing acceptable numbers 200-299
// Checking if we have response status code within acceptable numbers 200-299
if res.StatusCode >= 300 || res.StatusCode < 200 {
return nil, errors.New(res.Status)
}
Expand Down

0 comments on commit a5f0433

Please sign in to comment.