Skip to content

Commit

Permalink
get tests to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
rebello95 committed Jun 6, 2024
1 parent ba9641a commit 142a8d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ extension ConnectInterceptor: StreamInterceptor {
error: response.error,
trailers: response.metadata
))
} else if !message.isEmpty {
} else {
proceed(.message(message))
}
} catch let error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ extension GRPCWebInterceptor: StreamInterceptor {
trailers: trailers
))
}
} else if !unpackedData.isEmpty {
} else {
proceed(.message(unpackedData))
}
} catch let error {
Expand Down
4 changes: 1 addition & 3 deletions Libraries/ConnectNIO/Internal/GRPCInterceptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ extension GRPCInterceptor: StreamInterceptor {
let unpackedMessage = try Envelope.unpackMessage(
rawData, compressionPool: responseCompressionPool
).unpacked
if !unpackedMessage.isEmpty {
proceed(.message(unpackedMessage))
}
proceed(.message(unpackedMessage))
} catch let error {
// TODO: Close the stream here?
proceed(.complete(code: .unknown, error: error, trailers: nil))
Expand Down

0 comments on commit 142a8d8

Please sign in to comment.