mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(auth) tryRequire: callback -> log true
This commit is contained in:
parent
3e88d6b23e
commit
0640fdb734
1 changed files with 1 additions and 4 deletions
|
|
@ -18,10 +18,7 @@
|
|||
next();
|
||||
};
|
||||
|
||||
httpAuth = tryRequire('http-auth', function(error) {
|
||||
if (error)
|
||||
Util.log(error.message);
|
||||
});
|
||||
httpAuth = tryRequire('http-auth', {log: true});
|
||||
|
||||
if (httpAuth) {
|
||||
type = init(httpAuth, config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue