From c899d52e2fd5487ab07c87e5ce79693045c13360 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Mon, 31 Mar 2025 13:05:47 +0200 Subject: [PATCH] Service::GetSeverity(): remove explicit unlocking No change in functionality. The ObjectLock destructor will implicitly release the locks when returning from the function. --- lib/icinga/service.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp index 406c7958c..11d7c9633 100644 --- a/lib/icinga/service.cpp +++ b/lib/icinga/service.cpp @@ -144,9 +144,6 @@ int Service::GetSeverity() const } else { severity += 2048; } - hlock.Unlock(); - - olock.Unlock(); return severity; }