From 523800ea39bafe31c2904dfccabe9ff742a89e43 Mon Sep 17 00:00:00 2001 From: Josiah Glosson Date: Thu, 3 Jul 2025 15:23:28 -0500 Subject: [PATCH] Fix lint --- apps/app-frontend/src/App.vue | 6 ++--- .../src/components/ui/UpdateModal.vue | 26 ++++++++----------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index c9ac71872..42b60534f 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -42,7 +42,7 @@ import ModrinthLoadingIndicator from '@/components/LoadingIndicatorBar.vue' import { handleError, useNotifications } from '@/store/notifications.js' import { command_listener, warning_listener } from '@/helpers/events.js' import { type } from '@tauri-apps/plugin-os' -import {areUpdatesEnabled, getOS, isDev, restartApp} from '@/helpers/utils.js' +import { areUpdatesEnabled, getOS, isDev, restartApp } from '@/helpers/utils.js' import { debugAnalytics, initAnalytics, optOutAnalytics, trackEvent } from '@/helpers/analytics' import { getCurrentWindow } from '@tauri-apps/api/window' import { getVersion } from '@tauri-apps/api/app' @@ -69,7 +69,7 @@ import { hide_ads_window, init_ads_window } from '@/helpers/ads.js' import FriendsList from '@/components/ui/friends/FriendsList.vue' import { openUrl } from '@tauri-apps/plugin-opener' import QuickInstanceSwitcher from '@/components/ui/QuickInstanceSwitcher.vue' -import UpdateModal from "@/components/ui/UpdateModal.vue"; +import UpdateModal from '@/components/ui/UpdateModal.vue' import { get_available_capes, get_available_skins } from './helpers/skins' import { generateSkinPreviews } from './helpers/rendering/batch-skin-renderer' @@ -349,7 +349,7 @@ async function handleCommand(e) { const updateAvailable = ref(false) const updateModal = useTemplateRef('updateModal') async function checkUpdates() { - if (!await areUpdatesEnabled()) { + if (!(await areUpdatesEnabled())) { console.log('Skipping update check as updates are disabled in this build') return } diff --git a/apps/app-frontend/src/components/ui/UpdateModal.vue b/apps/app-frontend/src/components/ui/UpdateModal.vue index b6bf0539c..5ae043609 100644 --- a/apps/app-frontend/src/components/ui/UpdateModal.vue +++ b/apps/app-frontend/src/components/ui/UpdateModal.vue @@ -1,8 +1,5 @@ - +