Skip to content

Commit

Permalink
reportinfo.go: fix pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarlattice0 committed Oct 17, 2023
1 parent 9d316d6 commit 22724b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extra/reportinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -57,5 +56,5 @@ func GenerateInfo(currentConfiguration config.Config) (*SysInfo, error) {
if _, err := os.Stat("/.flatpak-info"); err == nil {
currentSystem.InFlatpak = true
}
return &currentSystem, nil
return currentSystem, nil
}

0 comments on commit 22724b0

Please sign in to comment.