summaryrefslogtreecommitdiff
path: root/bin/util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bin/util.rb')
-rw-r--r--bin/util.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/util.rb b/bin/util.rb
index 6ea3967..16c7212 100644
--- a/bin/util.rb
+++ b/bin/util.rb
@@ -128,7 +128,9 @@ class Page
if @published.nil?
raw = `git log -n1 --reverse --format='%cI' -- #{infile}`
@published = DateTime.iso8601(raw) unless raw.empty?
- if !updated.nil? && updated < @published
+ end
+ unless @published.nil? or updated.nil?
+ if updated < @published
@published = updated
end
end