proper indentation

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-17 15:19:12 +02:00
parent f540aa9305
commit ec5a98e22b
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -103,7 +103,7 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
val input: InputStream = context.contentResolver.openInputStream(sourcefileUri)!! val input: InputStream = context.contentResolver.openInputStream(sourcefileUri)!!
val buf = ByteArray(input.available()) val buf = ByteArray(input.available())
while (input.read(buf) != -1) while (input.read(buf) != -1)
requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf) requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf)
} catch (e: Exception) { } catch (e: Exception) {
Log.e(javaClass.simpleName, "failed to create RequestBody for $sourcefileUri", e) Log.e(javaClass.simpleName, "failed to create RequestBody for $sourcefileUri", e)
} }