From 4e17f1290c9c07f8a7e91662295dc84f21f6cbae Mon Sep 17 00:00:00 2001 From: hhvn Date: Wed, 21 Feb 2024 18:35:14 +0000 Subject: No longer need finalstate --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.go') 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) } -- cgit v1.2.3