mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
Resolves Issue #151 silly assert issue
This commit is contained in:
parent
45ccb0e2ed
commit
fcd0ffce85
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ var assertNotCheckedOut = function(engine, ref) {
|
||||||
var assertIsBranch = function(engine, ref) {
|
var assertIsBranch = function(engine, ref) {
|
||||||
assertIsRef(engine, ref);
|
assertIsRef(engine, ref);
|
||||||
var obj = engine.refs[ref];
|
var obj = engine.refs[ref];
|
||||||
if (obj.get('type') !== 'branch') {
|
if (!obj || obj.get('type') !== 'branch') {
|
||||||
throw new GitError({
|
throw new GitError({
|
||||||
msg: intl.todo(
|
msg: intl.todo(
|
||||||
ref + ' is not a branch'
|
ref + ' is not a branch'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue