Skip to content

Commit

Permalink
Fix README snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman committed Jan 19, 2024
1 parent a0536e9 commit a31df18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pigeon/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ private class PigeonApiImplementation: ExampleHostApi {
}

func add(_ a: Int64, to b: Int64) throws -> Int64 {
if (a < 0 || b < 0) {
throw FlutterError(code: "code", message: "message", details: "details");
if a < 0 || b < 0 {
throw FlutterError(code: "code", message: "message", details: "details")
}
return a + b
}

func sendMessage(message: MessageData, completion: @escaping (Result<Bool, Error>) -> Void) {
if (message.code == Code.one) {
if message.code == Code.one {
completion(.failure(FlutterError(code: "code", message: "message", details: "details")))
return
}
Expand Down

0 comments on commit a31df18

Please sign in to comment.