From 9ff3ab1a2b74d8412de3ca24e206327d48f47569 Mon Sep 17 00:00:00 2001 From: Jai A Date: Tue, 28 Mar 2023 10:42:03 -0700 Subject: [PATCH] lint --- lib/components/nav/NavRow.vue | 4 ++-- lib/helpers/highlight.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/components/nav/NavRow.vue b/lib/components/nav/NavRow.vue index ba0fa632..a1cf7f73 100644 --- a/lib/components/nav/NavRow.vue +++ b/lib/components/nav/NavRow.vue @@ -81,8 +81,8 @@ export default { pickLink() { this.activeIndex = this.query ? this.filteredLinks.findIndex( - (x) => (x.href === '' ? undefined : x.href) === this.$route.path[this.query] - ) + (x) => (x.href === '' ? undefined : x.href) === this.$route.path[this.query] + ) : this.filteredLinks.findIndex((x) => x.href === decodeURIComponent(this.$route.path)) if (this.activeIndex !== -1) { diff --git a/lib/helpers/highlight.js b/lib/helpers/highlight.js index a5fca863..f250c4e4 100644 --- a/lib/helpers/highlight.js +++ b/lib/helpers/highlight.js @@ -54,7 +54,9 @@ export const renderHighlightedString = (string) => if (lang && hljs.getLanguage(lang)) { try { return hljs.highlight(str, { language: lang }).value - } catch (__) { /* empty */ } + } catch (__) { + /* empty */ + } } return ''