Code styling

Added brackets for const lambdas
Converted const lambdas with multiple instructions to functions
This commit is contained in:
2023-07-15 12:55:25 +03:00
parent 99d2b92b03
commit 0218cdced5
24 changed files with 106 additions and 69 deletions

View File

@ -101,9 +101,9 @@ const lineNames: Record<Lines, string> = {
violet: 'Фиолетовая',
}
const lineByName = (name: string) =>
const lineByName = (name: string) => (
lines.find(line => stations[line].has(name))
)
export type { Lines }
export { lines, stations, colors, lineNames, lineByName }