diff --git a/DuckDuckGo/Bookmarks/Model/BookmarkManager.swift b/DuckDuckGo/Bookmarks/Model/BookmarkManager.swift index 896a74cada..9f3c0bb715 100644 --- a/DuckDuckGo/Bookmarks/Model/BookmarkManager.swift +++ b/DuckDuckGo/Bookmarks/Model/BookmarkManager.swift @@ -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 { diff --git a/DuckDuckGo/Bookmarks/ViewModel/AddEditBookmarkDialogViewModel.swift b/DuckDuckGo/Bookmarks/ViewModel/AddEditBookmarkDialogViewModel.swift index 9ab29ec9ab..896748705f 100644 --- a/DuckDuckGo/Bookmarks/ViewModel/AddEditBookmarkDialogViewModel.swift +++ b/DuckDuckGo/Bookmarks/ViewModel/AddEditBookmarkDialogViewModel.swift @@ -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 }