Skip to content

Commit

Permalink
Update ssh.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti authored Oct 20, 2023
1 parent 17faa29 commit fbffa0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = function (opt) {
})
.connect(opt);
conn.once('end', () => agent.destroy());
return agent;

} catch (err) {
handleError(err);
Expand All @@ -40,4 +39,6 @@ module.exports = function (opt) {
agent.destroy();
throw err;
}

return agent;
};

0 comments on commit fbffa0c

Please sign in to comment.