Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pcottle/learnGitBranching
/ validateAtInit
Method
validateAtInit
src/js/visuals/visBranch.js:105–109 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
103
}
104
105
validateAtInit() {
106
if
(!this.get(
'branch'
)) {
107
throw
new
Error(
'need a branch!'
);
108
}
109
}
110
111
getID() {
112
return
this.get(
'branch'
).get(
'id'
);
Callers
1
initialize
Method · 0.95
Calls
1
get
Method · 0.45
Tested by
no test coverage detected