From f9be41f22045b11cd36d3bb597d03f40ab99ee70 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Fri, 10 Nov 2023 21:30:31 +0100 Subject: [PATCH] swiftformat Ignore --- Ignore/Sources/Ignore/Filter.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignore/Sources/Ignore/Filter.swift b/Ignore/Sources/Ignore/Filter.swift index 027d962c..bec1b4b4 100644 --- a/Ignore/Sources/Ignore/Filter.swift +++ b/Ignore/Sources/Ignore/Filter.swift @@ -79,12 +79,12 @@ public struct Filter: CustomStringConvertible { if self.isRelativeToBase { return url.path.withCString { stringCstr in - wildmatch(patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH + wildmatch(self.patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH } } return url.lastPathComponent.withCString { stringCstr in - wildmatch(patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH + wildmatch(self.patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH } } @@ -92,7 +92,7 @@ public struct Filter: CustomStringConvertible { public func matches(_ string: String) -> Bool { string.withCString { stringCstr in - wildmatch(patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH + wildmatch(self.patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH } }