diff options
author | Devlin Junker <devlin.junker@gmail.com> | 2023-08-08 08:28:08 -0700 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2023-08-11 09:22:24 +0200 |
commit | 2287835894a4552c8247c6be85934ff9eb00ed07 (patch) | |
tree | 89b06035dde2a1dd57165658915b9e05243d0d03 /src/store/feed.ts | |
parent | da782c0b07070f63b17135a6dfce61eb95f4c7e7 (diff) |
use eslint --fix to clean up linting errors
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to 'src/store/feed.ts')
-rw-r--r-- | src/store/feed.ts | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/store/feed.ts b/src/store/feed.ts index 6332fb988..737b90c5a 100644 --- a/src/store/feed.ts +++ b/src/store/feed.ts @@ -35,9 +35,8 @@ export const actions = { commit(FEED_MUTATION_TYPES.SET_FEEDS, feeds.data.feeds) }, async [FEED_ACTION_TYPES.ADD_FEED]( - { commit }: ActionParams, - { feedReq }: { feedReq: { url: string; folder?: { id: number }, user?: string; password?: string; } }) - { + { commit }: ActionParams, + { feedReq }: { feedReq: { url: string; folder?: { id: number }, user?: string; password?: string; } }) { let url = feedReq.url.trim() if (!url.startsWith('http')) { url = 'https://' + url @@ -69,10 +68,10 @@ export const actions = { }) commit(FEED_MUTATION_TYPES.ADD_FEED, response.data.feeds[0]) - } catch(e) { - // TODO: show error to user if failure - console.log(e); - return; + } catch (e) { + // TODO: show error to user if failure + console.log(e) + } }, } @@ -84,8 +83,8 @@ export const mutations = { }) }, [FEED_MUTATION_TYPES.ADD_FEED](state: AppState, feed: Feed) { - state.feeds.push(feed); - } + state.feeds.push(feed) + }, } export default { |