Skip to content

Commit cf33d7b

Browse files
sebstoadam-fowler
andauthored
use is instead of as? ... != nil
Co-authored-by: Adam Fowler <[email protected]>
1 parent b449a4d commit cf33d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AWSLambdaRuntime/Lambda+LocalServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ internal struct LambdaHTTPServer {
202202

203203
case .serverReturned(let result):
204204

205-
if (result.maybeError as? CancellationError) != nil {
205+
if result.maybeError is CancellationError {
206206
logger.trace("Server's task cancelled")
207207
} else {
208208
logger.error(

0 commit comments

Comments
 (0)