Skip to content

Commit

Permalink
clean ModerationsResult Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
James J Kalafus committed Feb 15, 2024
1 parent b65069c commit c5bd8c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/OpenAI/Public/Models/ModerationsResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public struct ModerationsResult: Codable, Equatable {
}

public func makeIterator() -> IndexingIterator<[(String, Bool)]> {
var int = -1
return Mirror(reflecting: self).children.enumerated().map { (index, element) in
#if DEBUG
if #available(iOS 16.0, *) {
Expand Down Expand Up @@ -103,7 +102,6 @@ public struct ModerationsResult: Codable, Equatable {
}

public func makeIterator() -> IndexingIterator<[(String, Bool)]> {
var int = -1
return Mirror(reflecting: self).children.enumerated().map { (index, element) in
#if DEBUG
if #available(iOS 16.0, *) {
Expand Down

0 comments on commit c5bd8c2

Please sign in to comment.