Skip to content

Commit cbc70f4

Browse files
committed
Fixed bad forward merge
1 parent 5bd6aac commit cbc70f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/v1/internal/ch-node.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ function loadFingerprint( serverId, knownHostsPath, cb ) {
5656
});
5757
}
5858

59-
function storeFingerprint( serverId, knownHostsPath, fingerprint ) {
60-
fs.appendFile(knownHostsPath, serverId + " " + fingerprint + EOL, "utf8" );
59+
function storeFingerprint(serverId, knownHostsPath, fingerprint) {
60+
fs.appendFile(knownHostsPath, serverId + " " + fingerprint + EOL, "utf8", (err) => {
61+
if (err) {
62+
console.log(err);
63+
}
64+
});
6165
}
6266

6367
const TrustStrategy = {

0 commit comments

Comments
 (0)