From 2f43fb8d3fc567c3f9acb3cea07eabec4c7329d5 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Thu, 16 May 2002 12:49:47 +0000 Subject: [PATCH] fix some of stijns perl-isms --- trunk/ripnews/news/article.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/ripnews/news/article.rb b/trunk/ripnews/news/article.rb index dc21e34..82e1c40 100644 --- a/trunk/ripnews/news/article.rb +++ b/trunk/ripnews/news/article.rb @@ -618,10 +618,10 @@ def _ydecode_file(file, outfile) totalsize = $8.to_i filename = $10 print "found beginning" - if part + if part != nil print " of part #{part}" end - if total + if total != nil print " of #{total}" end print ", linesize = #{linesize}, size = #{totalsize}, filename = #{filename}\n" @@ -653,7 +653,7 @@ def _ydecode_file(file, outfile) if size != bytes print "part size mismatch, is #{bytes}, should be #{size}\n" end - if !part + if part == nil return mode, filename end total += bytes