Skip to content

Commit

Permalink
Remove unnecessary log.Fatalf calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Kqzz committed Dec 25, 2023
1 parent 803099c commit 9d3e394
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions mc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package mc
import (
"encoding/json"
"fmt"
"log"

"github.com/valyala/fasthttp"
)
Expand All @@ -25,7 +24,6 @@ func UsernameToUuid(username string) (ProfileResponse, int, error) {

err := fasthttp.Do(req, resp)
if err != nil {
log.Fatalf("Request failed: %s", err)
return profile, 0, err
}

Expand All @@ -35,7 +33,6 @@ func UsernameToUuid(username string) (ProfileResponse, int, error) {

err = json.Unmarshal(bodyBytes, &profile)
if err != nil {
log.Fatalf("Unmarshalling failed: %s", err)
return profile, statusCode, err
}

Expand Down
1 change: 1 addition & 0 deletions mc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type MCaccount struct {
Email string
Password string
Bearer string
RefreshToken string
UUID string
Xuid string
Username string
Expand Down

0 comments on commit 9d3e394

Please sign in to comment.