Skip to content

Commit cfb0340

Browse files
author
Salma Alam-Naylor
committed
Use es6 syntax for return
1 parent d8fad15 commit cfb0340

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/fretonator-web/src/app/common/fret-map/fret-map.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,14 +435,14 @@ export class FretMapService {
435435
}
436436

437437
const similarModes = modeMap
438-
.map((noteObject, index) => {
439-
return {
438+
.map((noteObject, index) => (
439+
{
440440
noteDisplayName: noteObject.displayName,
441441
note: noteObject.name,
442442
mode: StandardModePatterns[firstModeInPattern + index],
443443
noteExtender: this.getNoteExtenderStringFromNoteObject(noteObject)
444-
} as unknown as SimilarMode;
445-
});
444+
}
445+
));
446446

447447
similarModes.shift();
448448
return similarModes;

0 commit comments

Comments
 (0)