Skip to content

Commit 178799f

Browse files
committed
fix: change command order and remove waste condition
1 parent 1688368 commit 178799f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

util/gh-pages/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,15 +443,15 @@ <h1>Clippy Lints</h1>
443443
</label>
444444
</li>
445445
<li class="checkbox">
446-
<label ng-click="toggleGroups(false)">
446+
<label ng-click="resetGroupsToDefault()">
447447
<input type="checkbox" class="invisible" />
448-
None
448+
Default
449449
</label>
450450
</li>
451451
<li class="checkbox">
452-
<label ng-click="resetGroupsToDefault()">
452+
<label ng-click="toggleGroups(false)">
453453
<input type="checkbox" class="invisible" />
454-
Default
454+
None
455455
</label>
456456
</li>
457457
<li role="separator" class="divider"></li>

util/gh-pages/script.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@
171171
$scope.resetGroupsToDefault = function () {
172172
const groups = $scope.groups;
173173
for (const [key, value] of Object.entries(GROUPS_FILTER_DEFAULT)) {
174-
if (groups.hasOwnProperty(key)) {
175-
groups[key] = value;
176-
}
174+
groups[key] = value;
177175
}
178176
};
179177

0 commit comments

Comments
 (0)