From 94bd2c26dda3ff2edc96c0bb82cd6304db817482 Mon Sep 17 00:00:00 2001 From: Zaptoss Date: Thu, 1 Aug 2024 11:11:55 +0300 Subject: [PATCH] Remove unnecessary conversion --- internal/service/workers/spreadsheets/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/workers/spreadsheets/config.go b/internal/service/workers/spreadsheets/config.go index cc76c8d..8cbe039 100644 --- a/internal/service/workers/spreadsheets/config.go +++ b/internal/service/workers/spreadsheets/config.go @@ -99,7 +99,7 @@ func (c *spreadsheeter) Spreadsheets() *Spreadsheets { } var token oauth2.Token - err = json.Unmarshal([]byte(tokenS), &token) + err = json.Unmarshal(tokenS, &token) if err != nil { panic(fmt.Errorf("failed to unmarshal token: %w", err)) }