Skip to content

Commit

Permalink
Merge pull request #160 from leonitousconforti/patch-1
Browse files Browse the repository at this point in the history
Update ssh.js
  • Loading branch information
apocas authored Oct 20, 2023
2 parents 17faa29 + fbffa0c commit 61ad6df
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 61ad6df

Please sign in to comment.