mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fix lint warnings
This commit is contained in:
parent
5bebbe2d3d
commit
7365c0b126
@ -41,13 +41,13 @@ object LogBuilder {
|
||||
enum class NetworkPetition {
|
||||
REQUEST, RESPONSE;
|
||||
|
||||
override fun toString(): String = super.toString().toLowerCase(Locale.ROOT)
|
||||
override fun toString(): String = super.toString().lowercase(Locale.ROOT)
|
||||
}
|
||||
|
||||
enum class NetworkNode {
|
||||
INFO, HEADER, BODY;
|
||||
|
||||
override fun toString(): String = super.toString().toLowerCase(Locale.ROOT)
|
||||
override fun toString(): String = super.toString().lowercase(Locale.ROOT)
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,7 +74,7 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() {
|
||||
val moshi: Moshi = Moshi.Builder().build()
|
||||
val type: Type = Types.newParameterizedType(CommonOcsResponse::class.java, CapabilityResponse::class.java)
|
||||
val adapter: JsonAdapter<CommonOcsResponse<CapabilityResponse>> = moshi.adapter(type)
|
||||
val commonResponse: CommonOcsResponse<CapabilityResponse>? = adapter.fromJson(response)
|
||||
val commonResponse: CommonOcsResponse<CapabilityResponse>? = response?.let { adapter.fromJson(it) }
|
||||
|
||||
result = RemoteOperationResult(OK)
|
||||
result.data = commonResponse?.ocs?.data?.toRemoteCapability()
|
||||
|
Loading…
x
Reference in New Issue
Block a user