refactor: get reference to error in catch block
fixes red squigle for unexpected {
This commit is contained in:
parent
9c669564b2
commit
986ad37597
|
@ -4,7 +4,7 @@ let Provider;
|
|||
try {
|
||||
Provider = require('fsProvider');
|
||||
}
|
||||
catch {
|
||||
catch (err) {
|
||||
Provider = require('./providers/default');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue