prefer arrow functions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
import * as BuildConfig from 'soapbox/build-config';
|
||||
|
||||
/** Require a custom JSON file if it exists */
|
||||
export const custom = (filename: string, fallback: any = {}): any => {
|
||||
const custom = (filename: string, fallback: any = {}): any => {
|
||||
if (BuildConfig.NODE_ENV === 'test') return fallback;
|
||||
|
||||
const modules = import.meta.glob('../custom/*.json', { eager: true });
|
||||
@ -12,3 +12,5 @@ export const custom = (filename: string, fallback: any = {}): any => {
|
||||
|
||||
return modules[key] ? modules[key] : fallback;
|
||||
};
|
||||
|
||||
export { custom };
|
||||
|
||||
Reference in New Issue
Block a user