Skip to content

Commit 8c188bf

Browse files
committed
style: detekt
1 parent 76929bc commit 8c188bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/kotlin/spp/cli/PlatformCLI.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ object PlatformCLI : CliktCommand(name = "spp-cli", allowMultipleSubcommands = t
134134
developer = Developer(decoded.getClaim("developer_id").asString(), jwtToken)
135135
}
136136
} else if (resp.code == 401 && accessToken.isNullOrEmpty()) {
137-
throw IllegalStateException("Connection failed. Reason: Missing access token")
137+
error("Connection failed. Reason: Missing access token")
138138
} else if (resp.code == 401) {
139-
throw IllegalStateException("Connection failed. Reason: Invalid access token")
139+
error("Connection failed. Reason: Invalid access token")
140140
} else {
141-
throw IllegalStateException("Connection failed. Reason: " + resp.message)
141+
error("Connection failed. Reason: " + resp.message)
142142
}
143143
}
144144

src/main/kotlin/spp/cli/commands/admin/client/AddClientAccess.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AddClientAccess : CliktCommand() {
4040
}
4141

4242
if (PlatformCLI.verbose) {
43-
echo("Added client access");
43+
echo("Added client access")
4444
echo("Id: ${response.data!!.addClientAccess.id!!}")
4545
echo("Secret: ${response.data!!.addClientAccess.secret!!}")
4646
} else {

0 commit comments

Comments
 (0)