Skip to content

Commit

Permalink
godoc/static: re-add "or" function call to package.html template
Browse files Browse the repository at this point in the history
It was removed unintentionally in CL 101295, where the intention was
to remove the (eq $.Dirname "/src") condition.

Updates golang/go#35812

Change-Id: I1591ed221f0d510fb1ffa51a3ecd48d8327fdfbb
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208661
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
  • Loading branch information
dmitshur committed Nov 26, 2019
1 parent 73cd2cc commit b0650ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion godoc/static/package.html
Expand Up @@ -263,7 +263,7 @@ <h2 id="pkg-subdirectories">Subdirectories</h2>
<th class="pkg-synopsis">Synopsis</th>
</tr>

{{if not ((eq $.Dirname "/src/cmd") $.DirFlat)}}
{{if not (or (eq $.Dirname "/src/cmd") $.DirFlat)}}
<tr>
<td colspan="2"><a href="..">..</a></td>
</tr>
Expand Down

0 comments on commit b0650ce

Please sign in to comment.