From 0e84dcde302c7d385807897bfd44e2b625d8bb92 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 17 Mar 2024 22:29:33 +0100 Subject: [PATCH] Conformed the Review model and the EndpointError error in the Feed library to the Equatable protocol. --- Libraries/Feed/Kit/Sources/Errors/EndpointError.swift | 2 +- Libraries/Feed/Kit/Sources/Models/Review.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Feed/Kit/Sources/Errors/EndpointError.swift b/Libraries/Feed/Kit/Sources/Errors/EndpointError.swift index d8e4249..d19426d 100644 --- a/Libraries/Feed/Kit/Sources/Errors/EndpointError.swift +++ b/Libraries/Feed/Kit/Sources/Errors/EndpointError.swift @@ -6,7 +6,7 @@ // Copyright © 2024 Röck+Cöde VoF. All rights reserved. // -public enum EndpointError: Error { +public enum EndpointError: Error, Equatable { case inputParametersEmpty case requestFailed(statusCode: Int) case responseNotFound diff --git a/Libraries/Feed/Kit/Sources/Models/Review.swift b/Libraries/Feed/Kit/Sources/Models/Review.swift index 90b511e..d32a656 100644 --- a/Libraries/Feed/Kit/Sources/Models/Review.swift +++ b/Libraries/Feed/Kit/Sources/Models/Review.swift @@ -8,7 +8,7 @@ import Foundation -public struct Review { +public struct Review: Equatable { // MARK: Constants public let author: String