From a249c37612c256747949c2624b1fcb624189a361 Mon Sep 17 00:00:00 2001 From: piotr Date: Wed, 21 Sep 2022 00:56:09 +0200 Subject: [PATCH] del redundant type conversion --- tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.go b/tools.go index e20ed52..ff08045 100644 --- a/tools.go +++ b/tools.go @@ -273,7 +273,7 @@ func loadPreferredApps(path string) (map[string]interface{}, error) { byteValue, _ := io.ReadAll(jsonFile) var result map[string]interface{} - err = json.Unmarshal([]byte(byteValue), &result) + err = json.Unmarshal(byteValue, &result) if err != nil { return nil, err }