Skip to content

Commit

Permalink
Cleanup themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyespo committed Dec 31, 2012
1 parent 80038a1 commit 956a3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitpress/themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ def use_theme(theme, directory=None):
repo = require_repo(directory)
if theme not in list_themes(directory):
raise ThemeNotFoundError(theme)

old_theme = set_value(repo, 'theme', theme)
return theme != old_theme
return old_theme != theme

0 comments on commit 956a3ac

Please sign in to comment.