Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/desktop/desktop
/ assertNonNullable
Function
assertNonNullable
app/src/lib/fatal-error.ts:42–49 ·
view source on GitHub ↗
( x: T, message: string )
Source
from the content-addressed store, hash-verified
40
* value is defined.
41
*/
42
export
function
assertNonNullable<T>(
43
x: T,
44
message: string
45
): asserts x is NonNullable<T> {
46
if
(x == null) {
47
return
fatalError(message)
48
}
49
}
Callers
9
packageWindows
Function · 0.90
tag-test.ts
File · 0.90
branch-test.ts
File · 0.90
checkConstraint
Function · 0.90
toGitHubRepository
Method · 0.90
toRepository
Method · 0.90
getAll
Method · 0.90
createOwnerKey
Function · 0.90
getDiffRowsFromHunk
Function · 0.90
Calls
1
fatalError
Function · 0.85
Tested by
no test coverage detected