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 {
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