--- a/Allura/allura/model/repo_refresh.py
+++ b/Allura/allura/model/repo_refresh.py
@@ -75,7 +75,7 @@
     # Refresh trees
     # Like diffs below, pre-computing trees for some SCMs is too expensive,
     # so we skip it here, then do it on-demand later.
-    if repo._refresh_precompute == False:
+    if repo._refresh_precompute:
         cache = {}
         for i, oid in enumerate(commit_ids):
             ci = CommitDoc.m.find(dict(_id=oid), validate=False).next()
@@ -89,7 +89,7 @@
     # are set properly for forked repos. For some SCMs, compute_diffs()
     # we don't want to pre-compute the diffs because that would be too
     # expensive, so we skip them here and do them on-demand with caching.
-    if repo._refresh_precompute == False:
+    if repo._refresh_precompute:
         for i, oid in enumerate(reversed(all_commit_ids)):
             ci = CommitDoc.m.find(dict(_id=oid), validate=False).next()
             compute_diffs(repo._id, cache, ci)