prefer arrow functions

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-12 15:24:15 +02:00
parent afa677a375
commit cb7976bd3d
11 changed files with 134 additions and 121 deletions

View File

@ -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 };