Skip to content

Commit

Permalink
PR comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
federicocappelli committed Apr 15, 2024
1 parent b7d31a6 commit a21c5fa
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions LocalPackages/PixelKit/Sources/PixelKit/PixelKitEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public final class DebugEvent: PixelKitEvent {
public enum EventType {
case assertionFailure(message: String, file: StaticString, line: UInt)
case custom(_ event: PixelKitEvent)
case customV2(_ event: PixelKitEventV2)
}

public let eventType: EventType
Expand All @@ -47,19 +46,12 @@ public final class DebugEvent: PixelKitEvent {
self.error = error
}

public init(_ event: PixelKitEventV2) {
self.eventType = .customV2(event)
self.error = event.error
}

public var name: String {
switch eventType {
case .assertionFailure:
return "assertion_failure"
case .custom(let event):
return event.name
case .customV2(let event):
return event.name
}
}

Expand Down

0 comments on commit a21c5fa

Please sign in to comment.