Skip to content

Commit

Permalink
fix(ios): error data is optional (#5782)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jul 21, 2022
1 parent 8f34395 commit da48d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/CAPPluginCall.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension CAPPluginCall: JSValueContainer {
errorHandler(CAPPluginCallError(message: message, code: nil, error: error, data: data))
}

func reject(_ message: String, _ code: String? = nil, _ error: Error? = nil, _ data: PluginCallResultData = [:]) {
func reject(_ message: String, _ code: String? = nil, _ error: Error? = nil, _ data: PluginCallResultData? = nil) {
errorHandler(CAPPluginCallError(message: message, code: code, error: error, data: data))
}

Expand Down

0 comments on commit da48d79

Please sign in to comment.