Commit 226dbe28 authored by Luke Bennett's avatar Luke Bennett

Only destroy mirrorPull if it exists

parent 4f77634a
......@@ -68,7 +68,7 @@ export default class EEMirrorRepos extends MirrorRepos {
this.updateProtectedBranches();
if (direction === 'pull') return this.initMirrorPull();
this.mirrorPull.destroy();
if (this.mirrorPull) this.mirrorPull.destroy();
return this.initMirrorPush();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment