Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 14, 2024
1 parent ec490bc commit cd5f984
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deepmodeling_sphinx/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ def minify_html_files(app, pagename, templatename, context, doctree):
def render(self, template, render_context):
content = old_render(template, render_context)
try:
return minify_html.minify(
content, minify_js=True, minify_css=True
)
return minify_html.minify(content, minify_js=True, minify_css=True)
except SyntaxError:
return content

Expand Down

0 comments on commit cd5f984

Please sign in to comment.