Skip to content

Commit 29ed9d1

Browse files
spotless
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent 0f65e92 commit 29ed9d1

7 files changed

Lines changed: 28 additions & 21 deletions

library/src/main/java/com/nextcloud/android/lib/resources/governance/GetAllSelectableLabelsRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ class GetAllSelectableLabelsRemoteOperation(
3434
if (status != HttpStatus.SC_OK) {
3535
return RemoteOperationResult(false, getMethod)
3636
}
37-
val response = ocsJson.decodeFromString<OcsKotlinResponse<EntityLabels>>(
38-
getMethod.getResponseBodyAsString()
39-
)
37+
val response =
38+
ocsJson.decodeFromString<OcsKotlinResponse<EntityLabels>>(
39+
getMethod.getResponseBodyAsString()
40+
)
4041
val data = response.ocs.data
4142
RemoteOperationResult<EntityLabels>(true, getMethod).apply { resultData = data }
4243
} catch (e: Exception) {

library/src/main/java/com/nextcloud/android/lib/resources/governance/GetAvailableHoldLabelsRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class GetAvailableHoldLabelsRemoteOperation(
3535
if (status != HttpStatus.SC_OK) {
3636
return RemoteOperationResult(false, getMethod)
3737
}
38-
val response = ocsJson.decodeFromString<OcsKotlinResponse<List<HoldLabelInfo>>>(
39-
getMethod.getResponseBodyAsString()
40-
)
38+
val response =
39+
ocsJson.decodeFromString<OcsKotlinResponse<List<HoldLabelInfo>>>(
40+
getMethod.getResponseBodyAsString()
41+
)
4142
val data = response.ocs.data
4243
RemoteOperationResult<List<HoldLabelInfo>>(true, getMethod).apply { resultData = data }
4344
} catch (e: Exception) {

library/src/main/java/com/nextcloud/android/lib/resources/governance/GetAvailableRetentionLabelsRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class GetAvailableRetentionLabelsRemoteOperation(
3535
if (status != HttpStatus.SC_OK) {
3636
return RemoteOperationResult(false, getMethod)
3737
}
38-
val response = ocsJson.decodeFromString<OcsKotlinResponse<List<RetentionLabelInfo>>>(
39-
getMethod.getResponseBodyAsString()
40-
)
38+
val response =
39+
ocsJson.decodeFromString<OcsKotlinResponse<List<RetentionLabelInfo>>>(
40+
getMethod.getResponseBodyAsString()
41+
)
4142
val data = response.ocs.data
4243
RemoteOperationResult<List<RetentionLabelInfo>>(true, getMethod).apply { resultData = data }
4344
} catch (e: Exception) {

library/src/main/java/com/nextcloud/android/lib/resources/governance/GetAvailableSensitivityLabelsRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class GetAvailableSensitivityLabelsRemoteOperation(
3535
if (status != HttpStatus.SC_OK) {
3636
return RemoteOperationResult(false, getMethod)
3737
}
38-
val response = ocsJson.decodeFromString<OcsKotlinResponse<List<SensitivityLabelInfo>>>(
39-
getMethod.getResponseBodyAsString()
40-
)
38+
val response =
39+
ocsJson.decodeFromString<OcsKotlinResponse<List<SensitivityLabelInfo>>>(
40+
getMethod.getResponseBodyAsString()
41+
)
4142
val data = response.ocs.data
4243
RemoteOperationResult<List<SensitivityLabelInfo>>(true, getMethod).apply { resultData = data }
4344
} catch (e: Exception) {

library/src/main/java/com/nextcloud/android/lib/resources/governance/GetEntityLabelsRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ class GetEntityLabelsRemoteOperation(
3434
if (status != HttpStatus.SC_OK) {
3535
return RemoteOperationResult(false, getMethod)
3636
}
37-
val response = ocsJson.decodeFromString<OcsKotlinResponse<EntityLabels>>(
38-
getMethod.getResponseBodyAsString()
39-
)
37+
val response =
38+
ocsJson.decodeFromString<OcsKotlinResponse<EntityLabels>>(
39+
getMethod.getResponseBodyAsString()
40+
)
4041
val data = response.ocs.data
4142
RemoteOperationResult<EntityLabels>(true, getMethod).apply { resultData = data }
4243
} catch (e: Exception) {

library/src/main/java/com/nextcloud/android/lib/resources/governance/RemoveLabelRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ class RemoveLabelRemoteOperation(
3737
if (status != HttpStatus.SC_OK) {
3838
return RemoteOperationResult(false, deleteMethod)
3939
}
40-
val response = ocsJson.decodeFromString<OcsKotlinResponse<GovernanceLabelResponse>>(
41-
deleteMethod.getResponseBodyAsString()
42-
)
40+
val response =
41+
ocsJson.decodeFromString<OcsKotlinResponse<GovernanceLabelResponse>>(
42+
deleteMethod.getResponseBodyAsString()
43+
)
4344
val data = response.ocs.data
4445
RemoteOperationResult<GovernanceLabelResponse>(true, deleteMethod).apply { resultData = data }
4546
} catch (e: Exception) {

library/src/main/java/com/nextcloud/android/lib/resources/governance/SetLabelRemoteOperation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ class SetLabelRemoteOperation(
4242
if (status != HttpStatus.SC_OK) {
4343
return RemoteOperationResult(false, postMethod)
4444
}
45-
val response = ocsJson.decodeFromString<OcsKotlinResponse<GovernanceLabelResponse>>(
46-
postMethod.getResponseBodyAsString()
47-
)
45+
val response =
46+
ocsJson.decodeFromString<OcsKotlinResponse<GovernanceLabelResponse>>(
47+
postMethod.getResponseBodyAsString()
48+
)
4849
val data = response.ocs.data
4950
RemoteOperationResult<GovernanceLabelResponse>(true, postMethod).apply { resultData = data }
5051
} catch (e: Exception) {

0 commit comments

Comments
 (0)