Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lei9444 committed Jul 2, 2020
1 parent 1303aac commit 294dc87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ExportsKey = '@exports';
export const searchLgCustomFunction = (lgFiles: LgFile[]): string[] => {
const customFunctions = lgFiles.reduce((result: string[], lgFile) => {
const { options } = lgFile;
if (options?.length > 0) {
if (options?.length) {
const exports = extractOptionByKey(ExportsKey, options);
let namespace = extractOptionByKey(NamespaceKey, options);
if (!namespace) namespace = lgFile.id; //if namespace doesn't exist, use file name
Expand Down

0 comments on commit 294dc87

Please sign in to comment.