codacy: NoSemicolons

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-17 13:39:09 +02:00
parent 4999916f27
commit dcadf5d1a3
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -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)