mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
refactor: 💚 fix extra space in old code
This commit is contained in:
parent
aa49098d39
commit
a2512cf2a0
1 changed files with 7 additions and 7 deletions
|
@ -14,13 +14,13 @@ const pkgJSON = require('../../package.json');
|
|||
*/
|
||||
function getlvl(x) {
|
||||
switch(true) {
|
||||
case x < 15 : return 'trace';
|
||||
case x < 25 : return 'debug';
|
||||
case x < 35 : return 'info';
|
||||
case x == 35 : return 'http';
|
||||
case x < 45 : return 'warn';
|
||||
case x < 55 : return 'error';
|
||||
default : return 'fatal';
|
||||
case x < 15: return 'trace';
|
||||
case x < 25: return 'debug';
|
||||
case x < 35: return 'info';
|
||||
case x == 35: return 'http';
|
||||
case x < 45: return 'warn';
|
||||
case x < 55: return 'error';
|
||||
default: return 'fatal';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue