mirror of
https://codeberg.org/scip/watson-starship.git
synced 2025-12-17 20:51:04 +01:00
fix lint
This commit is contained in:
4
main.go
4
main.go
@@ -36,12 +36,12 @@ func main() {
|
||||
|
||||
data, err := os.ReadFile(statsfile)
|
||||
if err != nil {
|
||||
log.Fatalf("Could not read watson stats file: %w", err)
|
||||
log.Fatalf("Could not read watson stats file: %s", err)
|
||||
}
|
||||
|
||||
var stats Stats
|
||||
if err = json.Unmarshal(data, &stats); err != nil {
|
||||
log.Fatalf("Could not unmarshal JSON: %w", err)
|
||||
log.Fatalf("Could not unmarshal JSON: %s", err)
|
||||
}
|
||||
|
||||
start := time.Unix(stats.Start, 0)
|
||||
|
||||
Reference in New Issue
Block a user