Skip to content

Commit fafff84

Browse files
committed
remove unnecessary typed throws
1 parent 883397b commit fafff84

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: Coder Desktop/Coder Desktop/Views/LoginForm.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct LoginForm<C: Client, S: Session>: View {
7070
loading = true
7171
defer { loading = false }
7272
let client = C(url: url, token: sessionToken)
73-
do throws(ClientError) {
73+
do {
7474
_ = try await client.user("me")
7575
} catch {
7676
loginError = .failedAuth(error)

Diff for: Coder Desktop/VPN/Manager.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ actor Manager {
3030
} catch {
3131
throw .download(error)
3232
}
33-
do throws(ValidationError) {
33+
do {
3434
try SignatureValidator.validate(path: dest)
3535
} catch {
3636
throw .validation(error)
@@ -44,7 +44,7 @@ actor Manager {
4444
writeFD: tunnelHandle.writeHandle,
4545
readFD: tunnelHandle.readHandle
4646
)
47-
do throws(HandshakeError) {
47+
do {
4848
try await speaker.handshake()
4949
} catch {
5050
throw .handshake(error)

Diff for: Coder Desktop/VPNLib/Speaker.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ extension Speaker: AsyncSequence, AsyncIteratorProtocol {
153153
}
154154
guard msg.rpc.responseTo == 0 else {
155155
logger.debug("got RPC reply for msgID \(msg.rpc.responseTo)")
156-
do throws(RPCError) {
156+
do {
157157
try await self.secretary.route(reply: msg)
158158
} catch {
159159
logger.error(

0 commit comments

Comments
 (0)