From 9d3e3949bdefc1312b75051a1b61404191892196 Mon Sep 17 00:00:00 2001 From: kqzz <48300938+Kqzz@users.noreply.github.com> Date: Mon, 25 Dec 2023 18:06:31 -0500 Subject: [PATCH] Remove unnecessary log.Fatalf calls --- mc/api.go | 3 --- mc/types.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mc/api.go b/mc/api.go index 852e41f..a043a08 100644 --- a/mc/api.go +++ b/mc/api.go @@ -3,7 +3,6 @@ package mc import ( "encoding/json" "fmt" - "log" "github.com/valyala/fasthttp" ) @@ -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 } @@ -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 } diff --git a/mc/types.go b/mc/types.go index ba5de9e..4c57364 100644 --- a/mc/types.go +++ b/mc/types.go @@ -37,6 +37,7 @@ type MCaccount struct { Email string Password string Bearer string + RefreshToken string UUID string Xuid string Username string