diff options
author | 2014-09-10 07:27:04 +0000 | |
---|---|---|
committer | 2014-09-10 07:27:04 +0000 | |
commit | 5ad16e806865e545126d9b7f6d2e24f6214acf0c (patch) | |
tree | 641dab8984c5d0d13319ada5bdfef06234fb7075 | |
parent | Improve handling of description detection. (diff) | |
download | infra-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.rb | 2 |
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 |