From 4373e8acc00c0a914ab72dea7560a903d43892d0 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 1 Jun 2021 18:18:28 +0200 Subject: [PATCH] Fix: Lint issue --- src/templates/Typedoc/Entities.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 17e9fead..7d54e529 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -101,7 +101,9 @@ MethodDetails.propTypes = { } const getSourceLink = (sources, sourceUrl) => { - return sources && sources[0] ? `${sourceUrl}src/${sources[0].fileName}#L${sources[0].line}` : '' + return sources && sources[0] + ? `${sourceUrl}src/${sources[0].fileName}#L${sources[0].line}` + : '' } const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {