mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
refactor(files) read: errors -> error
This commit is contained in:
parent
b387b65cdb
commit
320affbb38
3 changed files with 17 additions and 18 deletions
|
|
@ -156,12 +156,11 @@
|
|||
if (Config.ssl)
|
||||
filesList.push(KEY, CERT);
|
||||
|
||||
files.read(filesList, 'utf8', function(errors, files) {
|
||||
files.read(filesList, 'utf8', function(error, files) {
|
||||
var status, msg, names;
|
||||
|
||||
if (errors) {
|
||||
status = 'error';
|
||||
Util.log(errors);
|
||||
if (error) {
|
||||
Util.log(error);
|
||||
} else {
|
||||
status = 'ok';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue