Skip to content

Commit 9ac3627

Browse files
committed
style
1 parent eeb788d commit 9ac3627

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rdoc/require.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ def to_s # :nodoc:
3939
def top_level
4040
@top_level ||= begin
4141
tl = RDoc::TopLevel.all_files_hash[name + '.rb']
42-
if tl.nil? && RDoc::TopLevel.all_files.first.full_name =~ %r(^lib/)
42+
43+
if tl.nil? and RDoc::TopLevel.all_files.first.full_name =~ %r(^lib/) then
4344
# second chance
4445
tl = RDoc::TopLevel.all_files_hash['lib/' + name + '.rb']
4546
end
47+
4648
tl
4749
end
4850
end

0 commit comments

Comments
 (0)