From aed240e142285c2ab29d4b06958154d8139ae5a5 Mon Sep 17 00:00:00 2001 From: Tyler Stewart Date: Fri, 8 Dec 2017 17:33:39 -0700 Subject: [PATCH] fix(stat): fix file response Ensures correct response when `stat`-ing a file ``` 212-Status begin ... 212 Status end ``` --- package.json | 1 - src/commands/registration/stat.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7fe9502f..b076b5d7 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,6 @@ "eslint-friendly-formatter": "3.0.0", "eslint-plugin-mocha": "^4.11.0", "eslint-plugin-node": "5.1.1", - "html-convert": "^2.1.7", "husky": "0.13.3", "istanbul": "0.4.5", "mocha": "3.5.0", diff --git a/src/commands/registration/stat.js b/src/commands/registration/stat.js index dc08cc42..2e170fd4 100644 --- a/src/commands/registration/stat.js +++ b/src/commands/registration/stat.js @@ -28,7 +28,8 @@ module.exports = { return this.reply(213, 'Status begin', ...fileList, 'Status end'); }); } else { - return this.reply(212, getFileStat(stat, _.get(this, 'server.options.file_format', 'ls'))); + const fileStat = getFileStat(stat, _.get(this, 'server.options.file_format', 'ls')); + return this.reply(212, 'Status begin', fileStat, 'Status end'); } }) .catch(err => {