Commit 40731cbd authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'remove_var_from_new_commit_form_js' into 'master'

Remove var from new_commit_form.js

See merge request gitlab-org/gitlab!20095
parents fc90f4f5 90398da2
/* eslint-disable no-var, no-return-assign */
/* eslint-disable no-return-assign */
export default class NewCommitForm {
constructor(form) {
this.form = form;
......@@ -11,8 +11,7 @@ export default class NewCommitForm {
this.renderDestination();
}
renderDestination() {
var different;
different = this.branchName.val() !== this.originalBranch.val();
const different = this.branchName.val() !== this.originalBranch.val();
if (different) {
this.createMergeRequestContainer.show();
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