Skip to content

Commit 02f044b

Browse files
do not use internal class
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent b949e0d commit 02f044b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/src/main/java/com/owncloud/android/lib/resources/tags/PutTagRemoteOperation.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ import com.nextcloud.operations.PutMethod
1212
import com.owncloud.android.lib.common.operations.RemoteOperation
1313
import com.owncloud.android.lib.common.operations.RemoteOperationResult
1414
import okhttp3.RequestBody
15-
import okhttp3.RequestBody.Companion.toRequestBody
16-
import okhttp3.internal.EMPTY_BYTE_ARRAY
1715
import org.apache.commons.httpclient.HttpStatus
1816

1917
class PutTagRemoteOperation(
2018
val id: String,
2119
val fileId: Long
2220
) : RemoteOperation<Void>() {
2321
override fun run(client: NextcloudClient): RemoteOperationResult<Void> {
24-
val empty: RequestBody = EMPTY_BYTE_ARRAY.toRequestBody()
22+
val empty: RequestBody = RequestBody.EMPTY
2523
val putMethod =
2624
PutMethod(
2725
client.baseUri.toString() + TAG_URL + fileId + "/" + id,

0 commit comments

Comments
 (0)