From 5a5742ce60fb894d8a5f1d0210c0729e9700b980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 20 Mar 2025 13:45:10 +0100 Subject: [PATCH] Cleanup: explicitly ignore error when requesting shutdown Explicitly ignore an error when requesting the Manager to shut down. This was already ignored implicitly, but now it's explicit to make linters happy. No functional changes. --- internal/manager/api_impl/api_impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/manager/api_impl/api_impl.go b/internal/manager/api_impl/api_impl.go index 4349ef01..9336c8e3 100644 --- a/internal/manager/api_impl/api_impl.go +++ b/internal/manager/api_impl/api_impl.go @@ -96,7 +96,7 @@ func (f *Flamenco) requestShutdown() { defer func() { // Recover the panic that happens when the channel is closed multiple times. // Requesting a shutdown should be possible multiple times without panicing. - recover() + _ = recover() }() close(f.done) }