Skip to content

Commit 329ca4f

Browse files
authored
Refactor createScheduleId to a single line
1 parent 0dd6247 commit 329ca4f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/components/Announcements/platforms/slashdot

src/components/Announcements/platforms/slashdot/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ const getSecureBase36 = length => {
138138
}
139139
return chars.join('');
140140
};
141-
const createScheduleId = () =>
142-
`schedule-${Date.now().toString(36)}-${getSecureBase36(6)}`;
141+
const createScheduleId = () => `schedule-${Date.now().toString(36)}-${getSecureBase36(6)}`;
143142
// const createScheduleId = () =>
144143
// `schedule-${Date.now().toString(36)}-${Math.random()
145144
// .toString(36)

0 commit comments

Comments
 (0)