Skip to content

Commit

Permalink
fix(stat): fix file response
Browse files Browse the repository at this point in the history
Ensures correct response when `stat`-ing a file

```
212-Status begin
...
212 Status end
```
  • Loading branch information
trs committed Dec 9, 2017
1 parent 6bbd905 commit aed240e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/commands/registration/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit aed240e

Please # to comment.