summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2024-02-21 18:35:14 +0000
committerhhvn <dev@hhvn.uk>2024-02-21 18:35:14 +0000
commit4e17f1290c9c07f8a7e91662295dc84f21f6cbae (patch)
tree16baef11779eb57960fc78bd946d27a3445da383
parentcf562d8ce1bc65e79a83e13b1f232e322d7a62ca (diff)
No longer need finalstate
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.go b/main.go
index 58e55b9..8a72dbf 100644
--- a/main.go
+++ b/main.go
@@ -12,10 +12,6 @@ import (
"hhvn.uk/hbspbar/status"
)
-// Store the state for when bar.Cleanup() is called
-// This is a bit hacky but I don't really see any alternative
-var finalstate *bspc.State = nil
-
func main() {
signals := make(chan os.Signal, 1)
signal.Notify(signals,
@@ -91,5 +87,5 @@ func main() {
}
}
- Cleanup(finalstate)
+ Cleanup(state)
}