Skip to content

Commit

Permalink
Fix swiftlint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaresiak committed Jul 26, 2024
1 parent 69140da commit c747c5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Bookmarks/BookmarkUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion Tests/BookmarksTests/BookmarkUtilsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c747c5c

Please sign in to comment.