Update complexity

This commit is contained in:
Andre Medeiros 2018-08-30 13:50:36 -04:00
parent f3857e4084
commit 34f6a130d8
2 changed files with 6 additions and 7 deletions

View File

@ -97,7 +97,7 @@ class ContractSource {
} }
} }
/*eslint complexity: ["error", 36]*/ /*eslint complexity: ["error", 38]*/
generateCodeCoverage(trace) { generateCodeCoverage(trace) {
if(!this.ast || !this.contractBytecode) throw new Error('Error generating coverage: solc output was not assigned'); if(!this.ast || !this.contractBytecode) throw new Error('Error generating coverage: solc output was not assigned');

View File

@ -1,14 +1,13 @@
class EmptySourceMap { const EmptySourceMap = {
static createRelativeTo(sourceMapString) { createRelativeTo: function(sourceMapString) {
if(sourceMapString === '') return EmptySourceMap; if(sourceMapString === '') return EmptySourceMap;
return new SourceMap(sourceMapString); return new SourceMap(sourceMapString);
} },
toString: function() {
static toString() {
return ''; return '';
} }
} };
class SourceMap { class SourceMap {
constructor(sourceMapStringOrOffset, length, id, jump) { constructor(sourceMapStringOrOffset, length, id, jump) {