diff --git a/README.md b/README.md index 058ad0b..824a75f 100644 --- a/README.md +++ b/README.md @@ -212,7 +212,7 @@ Stores the remote file directly in the given local path. ```javascript ftp.get("remote/file.txt", "local/file.txt", err => { - if (hadErr) { + if (err) { return console.error("There was an error retrieving the file."); } console.log("File copied successfully!");