Skip to content

Commit

Permalink
Better version check
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Dec 13, 2024
1 parent 4f09690 commit d27acfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class Agent {
}
if (this.launcher?.readPackage) {
const { modules } = this.launcher.readPackage()
if (!!semver.valid(modules['node-red'])) {
if (semver.valid(modules['node-red']) !== null) {
state.nodeRedVersion = modules['node-red']
} else {
try {
Expand Down

0 comments on commit d27acfb

Please sign in to comment.