Commit 90398da2 authored by Lee Tickett's avatar Lee Tickett Committed by Martin Wortschack

Remove var from new_commit_form.js

parent fc90f4f5
/* eslint-disable no-var, no-return-assign */ /* eslint-disable no-return-assign */
export default class NewCommitForm { export default class NewCommitForm {
constructor(form) { constructor(form) {
this.form = form; this.form = form;
...@@ -11,8 +11,7 @@ export default class NewCommitForm { ...@@ -11,8 +11,7 @@ export default class NewCommitForm {
this.renderDestination(); this.renderDestination();
} }
renderDestination() { renderDestination() {
var different; const different = this.branchName.val() !== this.originalBranch.val();
different = this.branchName.val() !== this.originalBranch.val();
if (different) { if (different) {
this.createMergeRequestContainer.show(); this.createMergeRequestContainer.show();
if (!this.wasDifferent) { if (!this.wasDifferent) {
......
---
title: Remove var from new_commit_form.js
merge_request: 20095
author: Lee Tickett
type: other
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