From 2bf7173f321fde91f86929928b6c6c4dabe6fdd2 Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Mon, 9 Dec 2024 23:39:52 +0300 Subject: [PATCH] Remove comment --- .../java/com/microsoft/kiota/http/OkHttpRequestAdapter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/http/okHttp/src/main/java/com/microsoft/kiota/http/OkHttpRequestAdapter.java b/components/http/okHttp/src/main/java/com/microsoft/kiota/http/OkHttpRequestAdapter.java index fc292222b..9408d1e1c 100644 --- a/components/http/okHttp/src/main/java/com/microsoft/kiota/http/OkHttpRequestAdapter.java +++ b/components/http/okHttp/src/main/java/com/microsoft/kiota/http/OkHttpRequestAdapter.java @@ -902,10 +902,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));