Update complexity
This commit is contained in:
parent
f3857e4084
commit
34f6a130d8
|
@ -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');
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue