Remove async from isSamePath check in integration sync

This commit is contained in:
Tuan Dang
2024-01-29 16:37:31 +07:00
parent 6b4aee2a44
commit 74ac75b878

View File

@@ -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;