We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c80d65 commit da50ef4Copy full SHA for da50ef4
Sources/TSCUtility/Context.swift
@@ -27,7 +27,7 @@ extension Context {
27
guard let value = self[ObjectIdentifier(T.self)] else {
28
return nil
29
}
30
- return value as! T
+ return value as? T
31
32
33
/// Set a context value for a type.
0 commit comments