Skip to content

Commit 6b562b1

Browse files
joeizangAniket-Engg
authored andcommitted
renamed variable name
1 parent 4e8df72 commit 6b562b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/doc-gen/src/app/docgen-client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export class DocGenClient extends PluginClient {
4848
input: input,
4949
output: output
5050
}
51-
const test = normalizeContractPath(fileName)
52-
this.fileName = typeof test === 'string' ? test : test[test.length - 1]
53-
this.contractPath = typeof test === 'object' ? test[0] : ''
51+
const segmentedPathList = normalizeContractPath(fileName)
52+
this.fileName = segmentedPathList[segmentedPathList.length - 1]
53+
this.contractPath = segmentedPathList[0]
5454
this.eventEmitter.emit('compilationFinished', this.build, this.fileName)
5555
})
5656
}

0 commit comments

Comments
 (0)