about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/storage.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-19 17:19:08 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-19 17:19:22 +0200
commit8fe333abd09d0688dfe3c8deb3da44b3e66d6df6 (patch)
tree4a1a3735e597fcc5c6918f8f72a73764dc63b456 /src/librustdoc/html/static/js/storage.js
parent6913c7487ec8d423633cc2613a6099133194fa90 (diff)
downloadrust-8fe333abd09d0688dfe3c8deb3da44b3e66d6df6.tar.gz
rust-8fe333abd09d0688dfe3c8deb3da44b3e66d6df6.zip
Add new lint to enforce whitespace after keywords
Diffstat (limited to 'src/librustdoc/html/static/js/storage.js')
-rw-r--r--src/librustdoc/html/static/js/storage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/js/storage.js b/src/librustdoc/html/static/js/storage.js
index 948885cd30a..3fcf66a817e 100644
--- a/src/librustdoc/html/static/js/storage.js
+++ b/src/librustdoc/html/static/js/storage.js
@@ -103,7 +103,7 @@ function onEachLazy(lazyArray, func, reversed) {
 function updateLocalStorage(name, value) {
     try {
         window.localStorage.setItem("rustdoc-" + name, value);
-    } catch(e) {
+    } catch (e) {
         // localStorage is not accessible, do nothing
     }
 }
@@ -111,7 +111,7 @@ function updateLocalStorage(name, value) {
 function getCurrentValue(name) {
     try {
         return window.localStorage.getItem("rustdoc-" + name);
-    } catch(e) {
+    } catch (e) {
         return null;
     }
 }