Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.displayHtml = (largeCurrent) => {
const size = (largeCurrent && this.current()) ? 26 : 18;
let prefix = '';
if (this.isRemote) {
prefix = `<span>${octicons.globe.toSVG({ 'height': size })}</span> `;
}
if (this.isBranch) {
prefix += `<span>${octicons['git-branch'].toSVG({ 'height': size })}</span> `;
} else if (this.isTag) {
prefix += `<span>${octicons.tag.toSVG({ 'height': size })}</span> `;
}
return prefix + this.localRefName;
};
}