fix coderefactor bot raised issues

This commit is contained in:
geoffrey45
2023-01-13 18:10:39 +03:00
committed by Mungai Njoroge
parent 6e8a9be06a
commit dd257e919d
8 changed files with 5 additions and 16 deletions
-1
View File
@@ -104,7 +104,6 @@ onUpdated(() => {
&::before {
content: "";
font-size: small;
margin-right: $smaller;
color: $gray2;
font-size: 1rem;
+1 -2
View File
@@ -42,7 +42,7 @@ const { query: folderQuery } = storeToRefs(folder);
const { query: albumQuery } = storeToRefs(album);
const props = defineProps<{
page: Routes | string;
page: typeof Routes | string;
}>();
const inputRef = ref<HTMLElement>();
@@ -100,7 +100,6 @@ if (source) {
.header-input {
background-color: transparent;
outline: none;
border: none;
color: inherit;
font-size: 1rem;
+2 -2
View File
@@ -11,8 +11,8 @@ export default async function favoriteHandler(
flag: boolean | undefined,
type: favType,
itemhash: string,
setter: (x?: any) => void,
remover: (x?: any) => void
setter: (x?: unknown) => void,
remover: (x?: unknown) => void
) {
const queue = useQueueStore();
const is_current =
-1
View File
@@ -8,7 +8,6 @@ const {
albumartists: albumArtistsUrl,
albumbio: albumBioUrl,
albumsByArtistUrl,
favAlbums,
} = paths.api;
const getAlbumData = async (hash: string, ToastStore: typeof useNotifStore) => {
+1 -1
View File
@@ -1,4 +1,4 @@
let development = import.meta.env.DEV;
const development = import.meta.env.DEV;
const dev_url = "http://localhost:1970";
const baseApiUrl = development ? dev_url : "";
-6
View File
@@ -1,6 +0,0 @@
const itemWidth = 160;
const itemMarginBottom = 24;
export default (containerWidth = 0, containerHeight = 0) => {
return Math.floor(containerWidth / itemWidth);
};
-2
View File
@@ -1,6 +1,4 @@
import { Track } from "@/interfaces";
import queue from "@/stores/queue";
import { toRef } from "vue";
export default function createTrackProps(track: Track) {
return {
+1 -1
View File
@@ -4,7 +4,7 @@
* @returns a string with commas in between each artist
*/
export default (artists: string[]) => {
let result: string[] = [];
const result: string[] = [];
artists.forEach((i, index, artists) => {
if (index !== artists.length - 1) {