Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Cldfire committed Aug 3, 2020
1 parent eea0e39 commit c4d0a1b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/librustdoc/html/static/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,7 @@ function switchTheme(newTheme, saveTheme) {
var themeFile = themeName + resourcesSuffix + ".css";
var themeSheet = document.querySelector("[href$='" + themeFile + "']");

if (themeName === newTheme) {
themeSheet.disabled = false;
} else {
themeSheet.disabled = true;
}
themeSheet.disabled = themeName !== newTheme;
});
// If this new value comes from a system setting or from the previously saved theme, no
// need to save it.
Expand Down

0 comments on commit c4d0a1b

Please sign in to comment.