Skip to content

Commit 69c5b90

Browse files
committed
fix: Trailing Whitespace Violation
1 parent 25a0f8e commit 69c5b90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WordPress/Classes/ViewRelated/Themes/ThemeBrowserViewController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ public protocol ThemePresenter: AnyObject {
662662

663663
private func resetRemoteSearch() {
664664
themesSyncingPage = 0
665-
665+
666666
if blog.supports(BlogFeature.customThemes) {
667667
themesSyncHelper.syncContent()
668668
}
@@ -690,7 +690,7 @@ public protocol ThemePresenter: AnyObject {
690690

691691
// Check if we have a previously longer search that is now under 3 characters
692692
let previouslyHadRemoteSearch = self.searchName.count >= 3
693-
693+
694694
// Create a new timer for debounce
695695
searchDebounceTimer = Timer.scheduledTimer(withTimeInterval: searchDebounceInterval, repeats: false) { [weak self] _ in
696696
guard let self else { return }
@@ -712,7 +712,7 @@ public protocol ThemePresenter: AnyObject {
712712
self.resetRemoteSearch()
713713
}
714714
}
715-
715+
716716
// Always reload with local results
717717
self.reloadThemes()
718718
}
@@ -768,7 +768,7 @@ public protocol ThemePresenter: AnyObject {
768768
}
769769

770770
// MARK: - NSFetchedResultsController helpers
771-
771+
772772
fileprivate func browsePredicate() -> NSPredicate? {
773773
return browsePredicateThemesWithCustomValue(false)
774774
}
@@ -793,15 +793,15 @@ public protocol ThemePresenter: AnyObject {
793793
let blogPredicate = NSPredicate(format: "blog == %@ AND custom == %d", self.blog, custom ? 1 : 0)
794794

795795
let subpredicates = [blogPredicate, filterType.predicate].compactMap { $0 }
796-
796+
797797
// For regular themes, add local search predicate if:
798798
// 1. Not using custom themes feature, or
799799
// 2. Search term is less than 3 characters (we'll only search locally for short terms)
800800
if !searchName.isEmpty && !custom && (!blog.supports(BlogFeature.customThemes) || searchName.count < 3) {
801801
let searchPredicate = NSPredicate(format: "name CONTAINS[cd] %@", searchName)
802802
return NSCompoundPredicate(andPredicateWithSubpredicates: subpredicates + [searchPredicate])
803803
}
804-
804+
805805
switch subpredicates.count {
806806
case 1:
807807
return subpredicates[0]

0 commit comments

Comments
 (0)