Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Jan 30, 2024
1 parent 9617191 commit 01b12dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/Snowplow/Events/EventBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,15 @@ public class Event: NSObject {
/// Adds a list of context entities to the existing ones.
@objc
public func entities(_ entities: [SelfDescribingJson]) -> Self {
self.entities.append(contentsOf: entities)
self._entities.append(contentsOf: entities)
return self
}

/// Adds a list of context entities to the existing ones.
@objc
@available(*, deprecated, renamed: "entities")
public func contexts(_ entities: [SelfDescribingJson]) -> Self {
self.entities.append(contentsOf: entities)
return self
return self.entities(entities)
}
}

Expand Down

0 comments on commit 01b12dd

Please sign in to comment.