Skip to content

Commit 78a598d

Browse files
committed
better fix code analytics
Signed-off-by: alperozturk <[email protected]>
1 parent e6fafd1 commit 78a598d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/src/main/java/com/owncloud/android/lib/common/utils/responseFormat/ResponseFormatDetector.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ object ResponseFormatDetector {
2424
else -> ResponseFormat.UNKNOWN
2525
}
2626

27-
private fun isJSON(input: String): Boolean {
28-
return try {
27+
private fun isJSON(input: String): Boolean =
28+
try {
2929
JSONObject(input)
3030
true
3131
} catch (e: JSONException) {
@@ -38,7 +38,6 @@ object ResponseFormatDetector {
3838
false
3939
}
4040
}
41-
}
4241

4342
@Suppress("TooGenericExceptionCaught")
4443
private fun isXML(input: String): Boolean =

0 commit comments

Comments
 (0)