File tree 2 files changed +5
-15
lines changed
src/helpers/formatters/search
2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,8 @@ export function format (
15
15
const artistName =
16
16
albumData . artist . name
17
17
18
- const artistNameFormatted = (
19
- `<div class="artist-name">
20
- ${ artistName }
21
- </div>`
22
- )
18
+ const artistNameFormatted =
19
+ `<div class="artist-name">${ artistName } </div>`
23
20
24
21
const imageExtrasmall = (
25
22
albumData . image ?. extrasmall ||
Original file line number Diff line number Diff line change @@ -16,22 +16,15 @@ export function format (
16
16
const artistName =
17
17
trackData . artist . name
18
18
19
- const artistNameFormatted = (
20
- `<div class="artist-name">
21
- ${ artistName }
22
- </div>`
23
- )
19
+ const artistNameFormatted =
20
+ `<div class="artist-name">${ artistName } </div>`
24
21
25
22
const albumTitle =
26
23
trackData . album ?. title
27
24
28
25
const albumTitleFormatted = (
29
26
albumTitle &&
30
- `<div class="album-title">
31
- <small>
32
- ${ albumTitle }
33
- </small>
34
- </div>`
27
+ `<div class="album-title"><small>${ albumTitle } </small></div>`
35
28
)
36
29
37
30
const artistNameWithAlbumTitle = [
You can’t perform that action at this time.
0 commit comments