From 22724b063ad10bd28f12dc5658c180a5365242a6 Mon Sep 17 00:00:00 2001 From: Thelolguy1 Date: Mon, 16 Oct 2023 22:49:53 -0700 Subject: [PATCH] reportinfo.go: fix pointers --- extra/reportinfo.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extra/reportinfo.go b/extra/reportinfo.go index 4081f0eb..b4f7059f 100644 --- a/extra/reportinfo.go +++ b/extra/reportinfo.go @@ -12,7 +12,6 @@ Wael, if you would like to combine the file reading into a single function, that package extra import ( - "errors" "github.com/vinegarhq/vinegar/internal/config" "os" "strings" @@ -26,7 +25,7 @@ type SysInfo struct { Config config.Config // Done } -func GenerateInfo(currentConfiguration config.Config) (*SysInfo, error) { +func GenerateInfo(currentConfiguration config.Config) (SysInfo, error) { var currentSystem SysInfo // Check for AVX @@ -57,5 +56,5 @@ func GenerateInfo(currentConfiguration config.Config) (*SysInfo, error) { if _, err := os.Stat("/.flatpak-info"); err == nil { currentSystem.InFlatpak = true } - return ¤tSystem, nil + return currentSystem, nil }