From 4afb8d450a1fc23c86e3935f2c2ff79d5cd2e52e Mon Sep 17 00:00:00 2001 From: kunkka Date: Thu, 22 Oct 2020 22:17:39 +0800 Subject: [PATCH] lint: prettier --- src/store/actions.js | 2 +- src/utils/common.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/actions.js b/src/store/actions.js index 1cc751c..58d0b2b 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -1,7 +1,7 @@ import { updateMediaSessionMetaData } from "@/utils/mediaSession"; import { getTrackDetail, scrobble, getMP3 } from "@/api/track"; import { isLoggedIn } from "@/utils/auth"; -import { updateHttps } from "@/utils/common" +import { updateHttps } from "@/utils/common"; export default { switchTrack({ state, dispatch, commit }, basicTrack) { diff --git a/src/utils/common.js b/src/utils/common.js index 6fcd59f..575e634 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -72,6 +72,6 @@ export function throttle(fn, time) { } export function updateHttps(url) { - if (!url) return '' + if (!url) return ""; return url.replace(/^http:/, "https:"); -} \ No newline at end of file +}