Skip to content

Commit d87eee6

Browse files
committed
style: refactor arrow functions to use explicit return statements for clarity
1 parent 3f4db5b commit d87eee6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dashboard/src/Utils/MonitorType.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export default class MonitorTypeUtil {
4949
options: category.monitorTypes
5050
.map((monitorType: MonitorType): CardSelectOption | null => {
5151
const typeProps: MonitorTypeProps | undefined = allProps.find(
52-
(p: MonitorTypeProps) => p.monitorType === monitorType,
52+
(p: MonitorTypeProps) => {
53+
return p.monitorType === monitorType;
54+
},
5355
);
5456

5557
if (!typeProps) {
@@ -64,8 +66,9 @@ export default class MonitorTypeUtil {
6466
};
6567
})
6668
.filter(
67-
(option: CardSelectOption | null): option is CardSelectOption =>
68-
option !== null,
69+
(option: CardSelectOption | null): option is CardSelectOption => {
70+
return option !== null;
71+
},
6972
),
7073
};
7174
},

0 commit comments

Comments
 (0)