mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 14:30:20 -05:00
[web] Lint source code
This commit is contained in:
@@ -50,7 +50,7 @@ const timeIndex = (string) => {
|
||||
return times.find((item) => isNaN(diff) || diff < item.difference)?.text(date)
|
||||
}
|
||||
|
||||
const createIndexer = ({ field, type = undefined } = {}) => {
|
||||
const createIndexer = ({ field, type } = {}) => {
|
||||
switch (type) {
|
||||
case String:
|
||||
return (item) => characterIndex(item[field])
|
||||
|
||||
Reference in New Issue
Block a user