Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
aforaleka committed May 10, 2024
1 parent 1eefcde commit 2d151b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,7 @@ open class StateManagerAdaptor(
)
}

internal open fun tracking(eventName: String, params: IMap<String, Any?>?) {
internal open fun tracking(eventName: String, params: IMap<String, Any?>? = null) {
val paramsAsString = jsonEncoder.encode(params)
ioImplementations.threading?.async(ThreadingType.main) {
ioImplementations.tracking?.log(eventName, paramsAsString)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ class V4StateManagerAdaptor(

private fun trackApiStateIfNeeded(apiState: ApiState?, oldValue: ApiState?) {
if (apiState?.abnormalState() == true || oldValue?.abnormalState() == true) {
tracking(AnalyticsEvent.NetworkStatus.rawValue, null)
tracking(AnalyticsEvent.NetworkStatus.rawValue)
}
}

Expand Down

0 comments on commit 2d151b6

Please sign in to comment.