Commit ed5f22cb authored by Mike Greiling's avatar Mike Greiling

satisfy eslint no-param-reassign rule

parent 8732ac40
/* eslint-disable class-methods-use-this, no-param-reassign */ /* eslint-disable class-methods-use-this */
((global) => { (() => {
const UNFOLD_COUNT = 20; const UNFOLD_COUNT = 20;
class Diff { class Diff {
...@@ -104,5 +104,6 @@ ...@@ -104,5 +104,6 @@
} }
} }
global.Diff = Diff; window.gl = window.gl || {};
})(window.gl || (window.gl = {})); window.gl.Diff = Diff;
})();
/* eslint-disable no-new, no-param-reassign, class-methods-use-this */ /* eslint-disable no-new, class-methods-use-this */
/* global Breakpoints */ /* global Breakpoints */
/* global Cookies */ /* global Cookies */
/* global DiffNotesApp */ /* global DiffNotesApp */
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
// //
/* eslint-enable max-len */ /* eslint-enable max-len */
((global) => { (() => {
// Store the `location` object, allowing for easier stubbing in tests // Store the `location` object, allowing for easier stubbing in tests
let location = window.location; let location = window.location;
...@@ -385,5 +385,6 @@ ...@@ -385,5 +385,6 @@
} }
} }
global.MergeRequestTabs = MergeRequestTabs; window.gl = window.gl || {};
})(window.gl || (window.gl = {})); window.gl.MergeRequestTabs = MergeRequestTabs;
})();
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