Skip to content

Commit da50ef4

Browse files
committed
Update Context.swift
1 parent 9c80d65 commit da50ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/TSCUtility/Context.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extension Context {
2727
guard let value = self[ObjectIdentifier(T.self)] else {
2828
return nil
2929
}
30-
return value as! T
30+
return value as? T
3131
}
3232

3333
/// Set a context value for a type.

0 commit comments

Comments
 (0)