fix some of stijns perl-isms
This commit is contained in:
parent
800d7a04b0
commit
2f43fb8d3f
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue