Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrdam committed Jun 26, 2024
1 parent f9a3b18 commit 050af44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function deleteDir(ftp, dir) {
});
}

mkDirExists = (ftp, dir) => {
function mkDirExists(ftp, dir) {
// Make the directory using recursive expand
return ftp.mkdir(dir, true).catch((err) => {
if (err.message.startsWith("EEXIST")) {
Expand Down
2 changes: 0 additions & 2 deletions src/lib.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
const path = require("upath");
var assert = require("assert");

const expect = require("chai").expect;

const lib = require("./lib");

describe("canIncludePath", () => {
Expand Down
4 changes: 2 additions & 2 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const options = {

const ftpServer = new FtpSrv(options);

ftpServer.on("login", (data, resolve, reject) => {
ftpServer.on("login", (data, resolve) => {
console.log("[login] Connection by", data.username);
console.log("[login] Setting home dir to:", homeDir);
resolve({ root: homeDir });
});

ftpServer.on("client-error", ({ connection, context, error }) => {
ftpServer.on("client-error", ({ context, error }) => {
console.log("**client-error**");
console.log(context);
console.log(error);
Expand Down

0 comments on commit 050af44

Please sign in to comment.