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

Commit0653766

Browse files
committed
lint
1 parentafcef21 commit0653766

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎Coder Desktop/VPN/Manager.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ actor Manager {
3131
// The tunnel might be asked to start before the network interfaces have woken up from sleep
3232
sessionConfig.waitsForConnectivity=true
3333
// URLSession's waiting for connectivity sometimes hangs even when
34-
// the network is up so this is deliberately short (15s) to avoid a
34+
// the network is up so this is deliberately short (30s) to avoid a
3535
// poor UX where it appears stuck.
36-
sessionConfig.timeoutIntervalForResource=15
36+
sessionConfig.timeoutIntervalForResource=30
3737
tryawaitdownload(src: dylibPath, dest: dest, urlSession:URLSession(configuration: sessionConfig))
3838
}catch{
3939
throw.download(error)

‎Coder Desktop/VPNLib/Download.swift‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public enum ValidationError: Error {
3131
case.missingInfoPList:
3232
"Info.plist is not embedded within the dylib."
3333
case.belowMinimumCoderVersion:
34-
"The Coder deployment must be version\(SignatureValidator.minimumCoderVersion) or higher to use Coder Desktop."
34+
"""
35+
The Coder deployment must be version\(SignatureValidator.minimumCoderVersion)
36+
or higher to use Coder Desktop.
37+
"""
3538
}
3639
}
3740

@@ -53,6 +56,7 @@ public class SignatureValidator {
5356
privatestaticletsignInfoFlags:SecCSFlags=.init(rawValue: kSecCSSigningInformation)
5457

5558
// `expectedVersion` must be of the form `[0-9]+.[0-9]+.[0-9]+`
59+
// swiftlint:disable:next cyclomatic_complexity
5660
publicstaticfunc validate(path:URL, expectedVersion:String)throws(ValidationError){
5761
guardFileManager.default.fileExists(atPath: path.path)else{
5862
throw.fileNotFound

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp