Skip to content

Commit

Permalink
Explicitly indicate decoding value
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaros committed Oct 31, 2024
1 parent ae3ed8d commit 8f36bd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AdyenActions/Actions/RedirectAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ public struct RedirectAction: Decodable {

/// Defines the type of redirect flow utilized by the `RedirectAction` object.
public enum RedirectType: String, Decodable {
case redirect
case nativeRedirect
// swiftlint:disable redundant_string_enum_value
case redirect = "redirect"
case nativeRedirect = "nativeRedirect"

public init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
Expand Down

0 comments on commit 8f36bd1

Please sign in to comment.