aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-28 06:30:11 +0800
committerFabio Berger <me@fabioberger.com>2018-09-28 06:30:11 +0800
commit092b184f4534a42d36d30d2d10b34b47255d2ee3 (patch)
treebb0c741b911d71d4e90d689261db255dfe5f9118 /packages/sol-doc
parentb2ff7bda02c02a950eb2cc656eaa5780d7b71b5b (diff)
downloaddexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.gz
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.bz2
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.lz
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.xz
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.zst
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.zip
Fix linter
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index d441b9a23..362fe12c3 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -490,6 +490,7 @@ function _getTypeFromDataItem(dataItem: DataItem): Type {
const isArrayType = _.endsWith(dataItem.type, '[]');
let type: Type;
if (isArrayType) {
+ // tslint:disable-next-line:custom-no-magic-numbers
typeName = typeDocType === TypeDocTypes.Intrinsic ? typeName.slice(0, -2) : typeName;
type = {
elementType: { name: typeName, typeDocType },
@@ -501,3 +502,4 @@ function _getTypeFromDataItem(dataItem: DataItem): Type {
}
return type;
}
+// tslint:disable:max-file-line-count