We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.split
1 parent d6aebb6 commit 4c99761Copy full SHA for 4c99761
src/v1/internal/ch-node.js
@@ -86,7 +86,7 @@ function storeFingerprint(serverId, knownHostsPath, fingerprint) {
86
try {
87
fs.accessSync(knownHostsPath);
88
} catch (_) {
89
- let pathWithoutFile = [].concat(knownHostsPath.split(path.sep)).slice(0, -1).join(path.sep);
+ let pathWithoutFile = knownHostsPath.split(path.sep).slice(0, -1).join(path.sep);
90
mkFullPath(pathWithoutFile);
91
}
92
fs.appendFile(knownHostsPath, serverId + " " + fingerprint + EOL, "utf8", (err) => {
0 commit comments