Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfafff84

Browse files
committed
remove unnecessary typed throws
1 parent883397b commitfafff84

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎Coder Desktop/Coder Desktop/Views/LoginForm.swift

Lines changed: 1 addition & 1 deletion
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
letclient=C(url: url, token: sessionToken)
73-
dothrows(ClientError){
73+
do{
7474
_=tryawait client.user("me")
7575
}catch{
7676
loginError=.failedAuth(error)

‎Coder Desktop/VPN/Manager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ actor Manager {
3030
}catch{
3131
throw.download(error)
3232
}
33-
dothrows(ValidationError){
33+
do{
3434
trySignatureValidator.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-
dothrows(HandshakeError){
47+
do{
4848
tryawait speaker.handshake()
4949
}catch{
5050
throw.handshake(error)

‎Coder Desktop/VPNLib/Speaker.swift

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp