mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Remove async from isSamePath check in integration sync
This commit is contained in:
@@ -2,7 +2,7 @@ import path from "path";
|
|||||||
|
|
||||||
// given two paths irrespective of ending with / or not
|
// given two paths irrespective of ending with / or not
|
||||||
// this will return true if its equal
|
// 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) => {
|
export const removeTrailingSlash = (str: string) => {
|
||||||
if (str === "/") return str;
|
if (str === "/") return str;
|
||||||
|
|||||||
Reference in New Issue
Block a user