Simplified return of ImGui::IsKeyReleased()
diff --git a/imgui.cpp b/imgui.cpp
index c34190b..c41c8b5 100644
--- a/imgui.cpp
+++ b/imgui.cpp
@@ -3507,9 +3507,7 @@
     ImGuiContext& g = *GImGui;
     if (user_key_index < 0) return false;
     IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown));
-    if (g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index])
-        return true;
-    return false;
+    return g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index];
 }
 
 bool ImGui::IsMouseDown(int button)