From c747c5c2f1080478a61ea576575053ff06b51799 Mon Sep 17 00:00:00 2001 From: Bartek Waresiak Date: Fri, 26 Jul 2024 18:46:51 +0200 Subject: [PATCH] Fix swiftlint errors --- Sources/Bookmarks/BookmarkUtils.swift | 2 +- Tests/BookmarksTests/BookmarkUtilsTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Bookmarks/BookmarkUtils.swift b/Sources/Bookmarks/BookmarkUtils.swift index bb3a501b4..33ab4ad59 100644 --- a/Sources/Bookmarks/BookmarkUtils.swift +++ b/Sources/Bookmarks/BookmarkUtils.swift @@ -58,7 +58,7 @@ public struct BookmarkUtils { var objects = (try? context.fetch(request)) ?? [] objects.sort(by: { ($0.favorites?.count ?? 0) > ($1.favorites?.count ?? 0) }) - + var result = [BookmarkEntity]() for uuid in uuids { if let entity = objects.first(where: { $0.uuid == uuid }) { diff --git a/Tests/BookmarksTests/BookmarkUtilsTests.swift b/Tests/BookmarksTests/BookmarkUtilsTests.swift index 0181d925f..95488ec29 100644 --- a/Tests/BookmarksTests/BookmarkUtilsTests.swift +++ b/Tests/BookmarksTests/BookmarkUtilsTests.swift @@ -72,7 +72,7 @@ final class BookmarkUtilsTests: XCTestCase { _ = BookmarkEntity.makeBookmark(title: "c", url: "c", parent: root1, context: context) try! context.save() - + let root = BookmarkUtils.fetchRootFolder(context) XCTAssertEqual(root, root2) }