From d7af80d2d1edcc45c043bb237c098c4cb0c026fa Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 28 Aug 2025 15:23:28 -0700 Subject: feat: Development commit --- Sora/Data/PostWithContext.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Sora/Data/PostWithContext.swift') diff --git a/Sora/Data/PostWithContext.swift b/Sora/Data/PostWithContext.swift index c8cb2f6..b98a191 100644 --- a/Sora/Data/PostWithContext.swift +++ b/Sora/Data/PostWithContext.swift @@ -2,18 +2,14 @@ import Foundation struct PostWithContext: Hashable { let post: BooruPost + // swiftlint:disable:next discouraged_optional_collection let posts: [BooruPost]? - init(post: BooruPost, posts: [BooruPost]?) { - self.post = post - self.posts = posts - } - func hash(into hasher: inout Hasher) { hasher.combine(post.id) } - static func == (lhs: PostWithContext, rhs: PostWithContext) -> Bool { + static func == (lhs: Self, rhs: Self) -> Bool { lhs.post.id == rhs.post.id } } -- cgit v1.2.3