From c70e01fa53a4f079f0d4277ea4d57a49611d50b3 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 14:25:16 +0100 Subject: [PATCH] Fix invalid constructor --- assets/javascripts/app/searcher.js | 1 - assets/javascripts/views/content/content.js | 1 - assets/javascripts/views/content/entry_page.js | 1 - assets/javascripts/views/content/offline_page.js | 1 - assets/javascripts/views/content/root_page.js | 1 - assets/javascripts/views/content/settings_page.js | 1 - assets/javascripts/views/layout/document.js | 1 - assets/javascripts/views/layout/menu.js | 1 - assets/javascripts/views/layout/mobile.js | 1 - assets/javascripts/views/layout/path.js | 1 - assets/javascripts/views/layout/resizer.js | 1 - assets/javascripts/views/layout/settings.js | 1 - assets/javascripts/views/list/list_focus.js | 1 - assets/javascripts/views/list/list_fold.js | 1 - assets/javascripts/views/list/list_select.js | 1 - assets/javascripts/views/list/paginated_list.js | 1 - assets/javascripts/views/misc/notice.js | 1 - assets/javascripts/views/misc/notif.js | 1 - assets/javascripts/views/pages/base.js | 1 - assets/javascripts/views/pages/hidden.js | 1 - assets/javascripts/views/pages/jquery.js | 1 - assets/javascripts/views/pages/sqlite.js | 1 - assets/javascripts/views/search/search.js | 1 - assets/javascripts/views/search/search_scope.js | 1 - assets/javascripts/views/sidebar/doc_list.js | 1 - assets/javascripts/views/sidebar/doc_picker.js | 1 - assets/javascripts/views/sidebar/entry_list.js | 1 - assets/javascripts/views/sidebar/results.js | 1 - assets/javascripts/views/sidebar/sidebar.js | 1 - assets/javascripts/views/sidebar/sidebar_hover.js | 1 - assets/javascripts/views/sidebar/type_list.js | 1 - 31 files changed, 31 deletions(-) diff --git a/assets/javascripts/app/searcher.js b/assets/javascripts/app/searcher.js index a52d5185..44ad0aa2 100644 --- a/assets/javascripts/app/searcher.js +++ b/assets/javascripts/app/searcher.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS104: Avoid inline assignments diff --git a/assets/javascripts/views/content/content.js b/assets/javascripts/views/content/content.js index aa368c83..28dd761c 100644 --- a/assets/javascripts/views/content/content.js +++ b/assets/javascripts/views/content/content.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS104: Avoid inline assignments diff --git a/assets/javascripts/views/content/entry_page.js b/assets/javascripts/views/content/entry_page.js index aa0e69c1..4a7b517e 100644 --- a/assets/javascripts/views/content/entry_page.js +++ b/assets/javascripts/views/content/entry_page.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS205: Consider reworking code to avoid use of IIFEs diff --git a/assets/javascripts/views/content/offline_page.js b/assets/javascripts/views/content/offline_page.js index fb554db0..217fc1f1 100644 --- a/assets/javascripts/views/content/offline_page.js +++ b/assets/javascripts/views/content/offline_page.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/content/root_page.js b/assets/javascripts/views/content/root_page.js index b5d76597..a4956e34 100644 --- a/assets/javascripts/views/content/root_page.js +++ b/assets/javascripts/views/content/root_page.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md diff --git a/assets/javascripts/views/content/settings_page.js b/assets/javascripts/views/content/settings_page.js index 653e6135..aa93d7b5 100644 --- a/assets/javascripts/views/content/settings_page.js +++ b/assets/javascripts/views/content/settings_page.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS205: Consider reworking code to avoid use of IIFEs diff --git a/assets/javascripts/views/layout/document.js b/assets/javascripts/views/layout/document.js index fe7985f8..886880b2 100644 --- a/assets/javascripts/views/layout/document.js +++ b/assets/javascripts/views/layout/document.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/layout/menu.js b/assets/javascripts/views/layout/menu.js index 2a0524c7..94138ee0 100644 --- a/assets/javascripts/views/layout/menu.js +++ b/assets/javascripts/views/layout/menu.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md */ diff --git a/assets/javascripts/views/layout/mobile.js b/assets/javascripts/views/layout/mobile.js index ffb5fdbe..600e99d0 100644 --- a/assets/javascripts/views/layout/mobile.js +++ b/assets/javascripts/views/layout/mobile.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/layout/path.js b/assets/javascripts/views/layout/path.js index 2c0614c8..14a97c79 100644 --- a/assets/javascripts/views/layout/path.js +++ b/assets/javascripts/views/layout/path.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md diff --git a/assets/javascripts/views/layout/resizer.js b/assets/javascripts/views/layout/resizer.js index 7bf9907e..b7888c40 100644 --- a/assets/javascripts/views/layout/resizer.js +++ b/assets/javascripts/views/layout/resizer.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md diff --git a/assets/javascripts/views/layout/settings.js b/assets/javascripts/views/layout/settings.js index fefe3f0d..677d11fb 100644 --- a/assets/javascripts/views/layout/settings.js +++ b/assets/javascripts/views/layout/settings.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS205: Consider reworking code to avoid use of IIFEs diff --git a/assets/javascripts/views/list/list_focus.js b/assets/javascripts/views/list/list_focus.js index ece364aa..98278c5f 100644 --- a/assets/javascripts/views/list/list_focus.js +++ b/assets/javascripts/views/list/list_focus.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/list/list_fold.js b/assets/javascripts/views/list/list_fold.js index 565a7700..eab384e5 100644 --- a/assets/javascripts/views/list/list_fold.js +++ b/assets/javascripts/views/list/list_fold.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/list/list_select.js b/assets/javascripts/views/list/list_select.js index 5be1cc86..7d48b1b4 100644 --- a/assets/javascripts/views/list/list_select.js +++ b/assets/javascripts/views/list/list_select.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/list/paginated_list.js b/assets/javascripts/views/list/paginated_list.js index 0b888806..8483882c 100644 --- a/assets/javascripts/views/list/paginated_list.js +++ b/assets/javascripts/views/list/paginated_list.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS104: Avoid inline assignments * DS202: Simplify dynamic range loops diff --git a/assets/javascripts/views/misc/notice.js b/assets/javascripts/views/misc/notice.js index 251e25d0..74a4aae3 100644 --- a/assets/javascripts/views/misc/notice.js +++ b/assets/javascripts/views/misc/notice.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md */ diff --git a/assets/javascripts/views/misc/notif.js b/assets/javascripts/views/misc/notif.js index 4ed28223..d8aa5002 100644 --- a/assets/javascripts/views/misc/notif.js +++ b/assets/javascripts/views/misc/notif.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md diff --git a/assets/javascripts/views/pages/base.js b/assets/javascripts/views/pages/base.js index ff1caa81..bc7c4125 100644 --- a/assets/javascripts/views/pages/base.js +++ b/assets/javascripts/views/pages/base.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/pages/hidden.js b/assets/javascripts/views/pages/hidden.js index be7e928b..152e1081 100644 --- a/assets/javascripts/views/pages/hidden.js +++ b/assets/javascripts/views/pages/hidden.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md */ diff --git a/assets/javascripts/views/pages/jquery.js b/assets/javascripts/views/pages/jquery.js index 29925eb0..3b43b9f0 100644 --- a/assets/javascripts/views/pages/jquery.js +++ b/assets/javascripts/views/pages/jquery.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/pages/sqlite.js b/assets/javascripts/views/pages/sqlite.js index 5050bb20..a211ad98 100644 --- a/assets/javascripts/views/pages/sqlite.js +++ b/assets/javascripts/views/pages/sqlite.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md */ diff --git a/assets/javascripts/views/search/search.js b/assets/javascripts/views/search/search.js index 08ddaf5a..81761f32 100644 --- a/assets/javascripts/views/search/search.js +++ b/assets/javascripts/views/search/search.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/search/search_scope.js b/assets/javascripts/views/search/search_scope.js index fbcb8bd5..d5e996e2 100644 --- a/assets/javascripts/views/search/search_scope.js +++ b/assets/javascripts/views/search/search_scope.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/sidebar/doc_list.js b/assets/javascripts/views/sidebar/doc_list.js index 771828ae..82ec9ace 100644 --- a/assets/javascripts/views/sidebar/doc_list.js +++ b/assets/javascripts/views/sidebar/doc_list.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/sidebar/doc_picker.js b/assets/javascripts/views/sidebar/doc_picker.js index 33f6bcb6..3f09dd07 100644 --- a/assets/javascripts/views/sidebar/doc_picker.js +++ b/assets/javascripts/views/sidebar/doc_picker.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining diff --git a/assets/javascripts/views/sidebar/entry_list.js b/assets/javascripts/views/sidebar/entry_list.js index 535c86b6..2b4347bc 100644 --- a/assets/javascripts/views/sidebar/entry_list.js +++ b/assets/javascripts/views/sidebar/entry_list.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md diff --git a/assets/javascripts/views/sidebar/results.js b/assets/javascripts/views/sidebar/results.js index b60b2440..e7a55d60 100644 --- a/assets/javascripts/views/sidebar/results.js +++ b/assets/javascripts/views/sidebar/results.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks diff --git a/assets/javascripts/views/sidebar/sidebar.js b/assets/javascripts/views/sidebar/sidebar.js index 5201fdd1..fd83c654 100644 --- a/assets/javascripts/views/sidebar/sidebar.js +++ b/assets/javascripts/views/sidebar/sidebar.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/sidebar/sidebar_hover.js b/assets/javascripts/views/sidebar/sidebar_hover.js index 57aa086e..971ad963 100644 --- a/assets/javascripts/views/sidebar/sidebar_hover.js +++ b/assets/javascripts/views/sidebar/sidebar_hover.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS206: Consider reworking classes to avoid initClass diff --git a/assets/javascripts/views/sidebar/type_list.js b/assets/javascripts/views/sidebar/type_list.js index 4e774301..66c30a0b 100644 --- a/assets/javascripts/views/sidebar/type_list.js +++ b/assets/javascripts/views/sidebar/type_list.js @@ -2,7 +2,6 @@ // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: - * DS002: Fix invalid constructor * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining