From 74ac75b878bbc8c52dada0810ca357d64f18ba2c Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Mon, 29 Jan 2024 16:37:31 +0700 Subject: [PATCH] Remove async from isSamePath check in integration sync --- backend/src/lib/fn/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/lib/fn/string.ts b/backend/src/lib/fn/string.ts index 2d7466c35..c3651fd4e 100644 --- a/backend/src/lib/fn/string.ts +++ b/backend/src/lib/fn/string.ts @@ -2,7 +2,7 @@ import path from "path"; // given two paths irrespective of ending with / or not // this will return true if its equal -export const isSamePath = async (from: string, to: string) => !path.relative(from, to); +export const isSamePath = (from: string, to: string) => !path.relative(from, to); export const removeTrailingSlash = (str: string) => { if (str === "/") return str;