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 {
|
try {
|
||||||
Provider = require('fsProvider');
|
Provider = require('fsProvider');
|
||||||
}
|
}
|
||||||
catch {
|
catch (err) {
|
||||||
Provider = require('./providers/default');
|
Provider = require('./providers/default');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue