Merge pull request #271 from lbryio/show_returns

always show returns in API
This commit is contained in:
netop:// ウェッブ 2019-04-08 14:45:30 -05:00 committed by GitHub
commit 9011adf048
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ function createApiContent(apiDetails) {
${apiDetail.arguments.length ? `<h3>Arguments</h3><ul class="api-content__body-arguments">${renderArguments(apiDetail.arguments).join("")}</ul>` : ""} ${apiDetail.arguments.length ? `<h3>Arguments</h3><ul class="api-content__body-arguments">${renderArguments(apiDetail.arguments).join("")}</ul>` : ""}
${!apiDetail.examples || !apiDetail.examples.length ? (`<h3>Returns</h3><pre><code>${dedent(apiDetailsReturns)}</code></pre>`) : ""} <h3>Returns</h3><pre><code>${dedent(apiDetailsReturns)}</code></pre>
</div> </div>
<div class="api-content__example"> <div class="api-content__example">