Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Sep 19, 2024
1 parent 8de6465 commit 1744046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ release:
@echo " ==> Pushing changes to github."

@git push --tags
@git push origin master
@git push origin main

doc-requirements: install
@pip install -r requirements.txt
Expand Down
3 changes: 2 additions & 1 deletion tsuru/auth/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func nativeLogin(ctx *cmd.Context) error {
defer response.Body.Close()

if response.StatusCode != http.StatusOK {
body, err := io.ReadAll(response.Body)
var body []byte
body, err = io.ReadAll(response.Body)
if err != nil {
return err
}
Expand Down

0 comments on commit 1744046

Please sign in to comment.