Skip to content

Commit

Permalink
Making URLs of bookmarks lowercase removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrba committed Dec 5, 2024
1 parent 092f019 commit 39e099c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions DuckDuckGo/Bookmarks/Model/BookmarkManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ final class LocalBookmarkManager: BookmarkManager {
}

@discardableResult func makeBookmark(for url: URL, title: String, isFavorite: Bool, index: Int? = nil, parent: BookmarkFolder? = nil) -> Bookmark? {
assert(url.absoluteString.lowercased() == url.absoluteString)

guard list != nil else { return nil }

guard !isUrlBookmarked(url: url) else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ final class AddEditBookmarkDialogViewModel: BookmarkDialogEditing {
}

func addOrSave(dismiss: () -> Void) {
guard let url = bookmarkURLPath.lowercased().url else {
guard let url = bookmarkURLPath.url else {
assertionFailure("Invalid URL, default action button should be disabled.")
return
}
Expand Down

0 comments on commit 39e099c

Please sign in to comment.