Skip to content

Commit 2edbc9e

Browse files
authored
change: ewTools.js — Logger to arrow function (#278)
change: `ewTools.js` — Logger to arrow function
2 parents 5c49fa6 + fa27850 commit 2edbc9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ewTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const getAllActionTypes = () => Object.values(ActionTypes).map((action, index, a
1515

1616
const getAllEntityTypes = () => Object.values(EntityTypes).map((entity, index, arr) => (index === arr.length - 1 ? ` and \`${entity}\`` : ` \`${entity}\`,`)).join("")
1717

18-
function Logger(text, type = LoggerType.EMPTY) {
18+
const Logger = (text, type = LoggerType.EMPTY) => {
1919
const typeFormatted = (type === LoggerType.EMPTY) ? `${type}` : `${type}:`
2020
if (isDevelopment) console.log(`${typeFormatted}`, text)
2121
}

0 commit comments

Comments
 (0)