From 266aec20e1b4bf1d081f0a0086fb3f25843a28c5 Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Thu, 16 Feb 2023 14:50:36 -0600 Subject: [PATCH] (NFC) h/mercury: Random nit in if case --- src/xrt/tracking/hand/mercury/hg_model.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/xrt/tracking/hand/mercury/hg_model.cpp b/src/xrt/tracking/hand/mercury/hg_model.cpp index c6efff2b5..e54fd393d 100644 --- a/src/xrt/tracking/hand/mercury/hg_model.cpp +++ b/src/xrt/tracking/hand/mercury/hg_model.cpp @@ -234,11 +234,10 @@ refine_center_of_distribution(struct HandTracking *hgt, // *out_refined_y = coarse_y; HG_DEBUG(hgt, "Failed! %d %d %d %d %d", coarse_x, coarse_y, w, h, max_kern_width); return false; - } else { - *out_refined_x = sum_of_values_times_locations_x / sum_of_values; - *out_refined_y = sum_of_values_times_locations_y / sum_of_values; - return true; } + *out_refined_x = sum_of_values_times_locations_x / sum_of_values; + *out_refined_y = sum_of_values_times_locations_y / sum_of_values; + return true; } static bool