MCPcopy
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

initializeMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected