From c584b3aec155fedd718fba9b373156dedaf5bc06 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Thu, 8 Feb 2024 20:38:01 +0100 Subject: [PATCH] refactoring: removed unnecessary comments --- src/convert_m_to_ft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convert_m_to_ft.c b/src/convert_m_to_ft.c index 021c6b3..34b7466 100644 --- a/src/convert_m_to_ft.c +++ b/src/convert_m_to_ft.c @@ -12,7 +12,7 @@ float convert_length(float value, char from_unit, char to_unit) { } else if (from_unit == 'i' && to_unit == 'c') { result = value * 2.54; // Inches to centimeters } else if (from_unit == 'c' && to_unit == 'i') { - result = value / 2.54; // Centimeters to inches + result = value / 2.54; } else { printf("Invalid units or conversion not supported.\n"); result = -1; // Error code