Skip to content

Commit

Permalink
chore: Rename api file and fix bug
Browse files Browse the repository at this point in the history
- Rename blog_api sdk and fix bug

#16
  • Loading branch information
lc-1010 committed Jul 10, 2023
1 parent a884cc9 commit 8fc4fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 57 deletions.
55 changes: 0 additions & 55 deletions pkg/bapi/api.go

This file was deleted.

4 changes: 2 additions & 2 deletions pkg/blog_api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
)
Expand Down Expand Up @@ -50,7 +50,7 @@ func (a *API) httpGet(ctx context.Context, path string) ([]byte, error) {
return nil, err
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)
return body, nil
}

Expand Down

0 comments on commit 8fc4fc6

Please sign in to comment.