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) {
if(!this.ast || !this.contractBytecode) throw new Error('Error generating coverage: solc output was not assigned');

View File

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