mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
codacy: NoSemicolons
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
4999916f27
commit
dcadf5d1a3
@ -102,7 +102,7 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
|
||||
try {
|
||||
val input: InputStream = context.contentResolver.openInputStream(sourcefileUri)!!
|
||||
val buf = ByteArray(input.available())
|
||||
while (input.read(buf) != -1);
|
||||
while (input.read(buf) != -1)
|
||||
requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf)
|
||||
} catch (e: Exception) {
|
||||
Log.e(javaClass.simpleName, "failed to create RequestBody for $sourcefileUri", e)
|
||||
|
Loading…
Reference in New Issue
Block a user