Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndiritu committed Dec 23, 2024
1 parent 7e0e064 commit 4ab1087
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -901,10 +901,8 @@ public long contentLength() throws IOException {

@Override
public void writeTo(@Nonnull BufferedSink sink) throws IOException {
// stored in variable before writing to the sink due to
// available()'s definition
long contentLength = contentLength();
if (contentLength() > 0) {
if (contentLength > 0) {
requestInfo.content.mark((int) contentLength);
}
sink.writeAll(Okio.source(requestInfo.content));
Expand Down

0 comments on commit 4ab1087

Please sign in to comment.