Skip to content

Commit 9084bd0

Browse files
committed
fix: simplify file path comparison in index.ts.hbs
1 parent 25276f5 commit 9084bd0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adminforth/commands/createApp/templates/index.ts.hbs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ export const admin = new AdminForth({
5757
],
5858
});
5959

60-
const currentFilePath = fileURLToPath(import.meta.url);
61-
const executedFilePath = path.resolve(process.argv[1]);
62-
63-
if (currentFilePath === executedFilePath) {
60+
if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
6461
const app = express();
6562
app.use(express.json());
6663

0 commit comments

Comments
 (0)