style: remove whitespaces at the end of the lines
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2493>
This commit is contained in:
parent
58d48a061e
commit
9027f8af73
|
@ -74,8 +74,8 @@
|
|||
// that do not support other codecs to be able to play it :)
|
||||
if (sources.length > 0 && !sources.some(({ mimetype }) => mimetype === 'audio/mpeg')) {
|
||||
const source = sources[0].listen_url
|
||||
const url = new URL(source.test(/^https?:/)
|
||||
? source
|
||||
const url = new URL(source.test(/^https?:/)
|
||||
? source
|
||||
: source[0] === '/'
|
||||
? `${baseUrl}${source}`
|
||||
: `${baseUrl}/${source}`
|
||||
|
|
Loading…
Reference in New Issue