Skip to content

Commit

Permalink
fix: Adjust code for eslint config update by fixing linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 9, 2023
1 parent bae60e9 commit 93498b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/components/settings/SettingsLiveView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div>
<NcNoteCard v-if="!settingsStore.enabled" type="info">{{ t('logreader', 'Polling is disabled because server is not configured to log to file') }}</NcNoteCard>
<NcNoteCard v-if="!settingsStore.enabled" type="info">
{{ t('logreader', 'Polling is disabled because server is not configured to log to file') }}
</NcNoteCard>
<NcCheckboxRadioSwitch :checked.sync="liveLog" :disabled="!settingsStore.enabled">
{{
t('logreader', 'Polling (live view)')
Expand Down
2 changes: 1 addition & 1 deletion src/utils/clipboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: 2023 Ferdinand Thiessen <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { expect, describe, it, vi, beforeAll } from 'vitest'
import { expect, describe, it, vi } from 'vitest'
import { copyToCipboard } from './clipboard'

describe('utils:clipboard', () => {
Expand Down
4 changes: 1 addition & 3 deletions src/utils/logfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { logger } from './logger'
* Parse a given log file
*
* @param file The log file
* @return Log entries
*/
export async function parseLogFile(file: File): Promise<ILogEntry[]> {
return parseLogString(await file.text())
Expand All @@ -21,7 +20,6 @@ export async function parseLogFile(file: File): Promise<ILogEntry[]> {
* Parse a given log file as string
*
* @param raw The raw log file content
* @return Log entries
*/
export async function parseLogString(raw: string): Promise<ILogEntry[]> {
let entries: IRawLogEntry[]
Expand All @@ -46,7 +44,7 @@ export async function parseLogString(raw: string): Promise<ILogEntry[]> {
export function parseRawLogEntry(entry: IRawLogEntry): ILogEntry {
return {
...entry,
exception: parseException((entry as any).exception || entry.message),
exception: parseException((entry as ILogEntry).exception || entry.message),
} as ILogEntry
}

Expand Down

0 comments on commit 93498b1

Please sign in to comment.