Commit 970cfb3a authored by alexpott's avatar alexpott

Issue #2603988 by heykarthikwithu: Unnecessary ternary condition in toolbar JS

parent fbe0991b
......@@ -124,7 +124,7 @@
var orientation = this.model.get('orientation');
// Determine the toggle-to orientation.
var antiOrientation = (orientation === 'vertical') ? 'horizontal' : 'vertical';
var locked = (antiOrientation === 'vertical') ? true : false;
var locked = antiOrientation === 'vertical';
// Remember the locked state.
if (locked) {
localStorage.setItem('Drupal.toolbar.trayVerticalLocked', 'true');
......
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