From 07abbd1e7ee1f98d40cffacf537577e0bcb3522b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 27 Aug 2026 14:57:59 -0700 Subject: [PATCH] Update macos/Sources/Helpers/Extensions/URL+Extension.swift Co-authored-by: Lukas <134181853+bo2themax@users.noreply.github.com> --- macos/Sources/Helpers/Extensions/URL+Extension.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/macos/Sources/Helpers/Extensions/URL+Extension.swift b/macos/Sources/Helpers/Extensions/URL+Extension.swift index e3554b599..1a87cc028 100644 --- a/macos/Sources/Helpers/Extensions/URL+Extension.swift +++ b/macos/Sources/Helpers/Extensions/URL+Extension.swift @@ -3,10 +3,6 @@ import Foundation extension URL { /// The decoded path with trailing separators removed, except for the root path. var pathWithoutTrailingSlash: String { - var result = path(percentEncoded: false) - while result.count > 1 && result.hasSuffix("/") { - result.removeLast() - } - return result + FilePath(path(percentEncoded: false)).string } }