From 36b05a73d2b4a5ac729a5d6b520de1924b7832e7 Mon Sep 17 00:00:00 2001 From: Michael Rebello Date: Thu, 26 Oct 2023 16:31:02 -0400 Subject: [PATCH] Update Message+BinaryAdditions.swift --- Sources/SwiftProtobuf/Message+BinaryAdditions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftProtobuf/Message+BinaryAdditions.swift b/Sources/SwiftProtobuf/Message+BinaryAdditions.swift index e58c434d8..c0a480693 100644 --- a/Sources/SwiftProtobuf/Message+BinaryAdditions.swift +++ b/Sources/SwiftProtobuf/Message+BinaryAdditions.swift @@ -28,7 +28,7 @@ extension Message { /// message. /// - Throws: `BinaryEncodingError` if encoding fails. public func serializedData(partial: Bool = false) throws -> Data { - try serializedData(partial: partial, options: BinaryEncodingOptions()) + return try serializedData(partial: partial, options: BinaryEncodingOptions()) } /// Returns a `Data` value containing the Protocol Buffer binary format