Skip to content

Commit

Permalink
add a comment and fix redundant from review #120
Browse files Browse the repository at this point in the history
  • Loading branch information
akim-muto committed Jun 12, 2024
1 parent 69d1992 commit 7224f3f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ export function macroNodeToDefinition<T>(
editorComponentBundleContent: "",
} as MacroEditorConfigCustomDefinition,
};
const BundlePathPlusOne = join(
"..",
macro.editorConfig.editorComponentBundlePath,
);
let editorComponentPath = join(
importPath,
BundlePathPlusOne,
"..",
macro.editorConfig.editorComponentBundlePath,
);
// fallback for backwards compatibility (see issue #120)
if (!existsSync(editorComponentPath)) {
editorComponentPath = join(
importPath,
Expand Down

0 comments on commit 7224f3f

Please sign in to comment.