summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2014-09-10 07:27:04 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2014-09-10 07:27:04 +0000
commit5ad16e806865e545126d9b7f6d2e24f6214acf0c (patch)
tree641dab8984c5d0d13319ada5bdfef06234fb7075
parentImprove handling of description detection. (diff)
downloadinfra-status-5ad16e806865e545126d9b7f6d2e24f6214acf0c.tar.gz
infra-status-5ad16e806865e545126d9b7f6d2e24f6214acf0c.tar.bz2
infra-status-5ad16e806865e545126d9b7f6d2e24f6214acf0c.zip
And robin needs to stop thinking in Perl.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--lib/notice_store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/notice_store.rb b/lib/notice_store.rb
index a825ee9..907c379 100644
--- a/lib/notice_store.rb
+++ b/lib/notice_store.rb
@@ -90,7 +90,7 @@ class Notice
metadata = YAML.load(content) || {}
metadata['updated_at'] = File.mtime(filename)
description = 'missing description'
- description_splitpos = undef
+ description_splitpos = nil
lines = content.split("\n").map { |l| l.strip }
if lines[0] == '---' and lines.grep('---').length() >= 2