Skip to content

Commit

Permalink
Solve issues in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Oct 29, 2024
1 parent 94752db commit ed0ea2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/cli/plugins/cli_cmd_plugin/source/cli_cmd_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function command_initialize(plugin_path) {
return fs.readdirSync(cmd_path);
} catch (e) {
/* If the directory does not exist, return no files */
if (e?.code === 'ENOENT') {
if (e !== undefined && e.code === 'ENOENT') {
return []
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function repl_initialize(plugin_path) {
return fs.readdirSync(repl_path);
} catch (e) {
/* If the directory does not exist, return no files */
if (e?.code === 'ENOENT') {
if (e !== undefined && e.code === 'ENOENT') {
return []
}

Expand Down

0 comments on commit ed0ea2c

Please sign in to comment.