Skip to content

Commit

Permalink
Set nil default parameter value for AnalyticKit's logError properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Fan committed Oct 10, 2017
1 parent 2b18ea3 commit d2ed4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AnalyticsKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ public class AnalyticsKit: NSObject {
channel(DefaultChannel).endTimedEvent(event, withProperties: properties)
}

public class func logError(_ name: String, message: String?, properties: [String: Any]?, exception: NSException?) {
public class func logError(_ name: String, message: String?, properties: [String: Any]? = nil, exception: NSException?) {
channel(DefaultChannel).logError(name, message: message, properties: properties, exception: exception)
}

public class func logError(_ name: String, message: String?, properties: [String: Any]?, error: Error?) {
public class func logError(_ name: String, message: String?, properties: [String: Any]? = nil, error: Error?) {
channel(DefaultChannel).logError(name, message: message, properties: properties, error: error)
}
}
Expand Down

0 comments on commit d2ed4e0

Please sign in to comment.