Skip to content

Commit 1a8552f

Browse files
committed
Refactor: Standardize arrow function formatting in extension.js
- Adjusted arrow function syntax by removing redundant parentheses for consistency.
1 parent 52af7e4 commit 1a8552f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ const MatrixIndicator = GObject.registerClass(
242242

243243
if (!name && roomData.summary?.['m.heroes']?.length > 0) {
244244
const heroes = roomData.summary['m.heroes'];
245-
const heroNames = heroes.map(h => {
245+
const heroNames = heroes.map((h) => {
246246
const m = roomData.state?.events?.find(e => e.type === 'm.room.member' && e.state_key === h);
247247
return m?.content?.displayname || h.split(':')[0].replace('@', '');
248248
});

0 commit comments

Comments
 (0)