Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 8 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | if (typeof ss === 'undefined' || typeof ss.i18n === 'undefined') { |
||
|
|||
2 | /* eslint-disable-next-line no-console */ |
||
3 | console.error('Class ss.i18n not defined') |
||
4 | } else { |
||
5 | ss.i18n.addDictionary('en', { |
||
6 | 'AssetAdmin.DETAILS': 'Edit' |
||
7 | }) |
||
8 | } |
||
9 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.