From d36053e7ef2a40b8a279177797347dd7133ad0d4 Mon Sep 17 00:00:00 2001 From: Pyxis Date: Sat, 6 Mar 2021 00:52:05 +0900 Subject: [PATCH] Some code refactor (2) --- src/calculator/UnitCalculator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calculator/UnitCalculator.ts b/src/calculator/UnitCalculator.ts index e68a1fdb..67ede014 100644 --- a/src/calculator/UnitCalculator.ts +++ b/src/calculator/UnitCalculator.ts @@ -29,8 +29,7 @@ export function displayFtOnly(ft: string): string { } export function displayFtMFloor(ft: number): string { - const floor = Math.floor(ft); - return displayFtM(floor.toString()); + return displayFtM(Math.floor(ft).toString()); } export function calculateTotalDistance(nm: string[]): string {