Skip to content

Commit b60676b

Browse files
committed
Remove useless condition
1 parent 7f19a95 commit b60676b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rdoc/markup/pre_process.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,12 @@ def run_pre_processes(comment_text, code_object, start_line_no, type)
141141
handle_directive('', directive, param, code_object)
142142
end
143143
if code_object.is_a?(RDoc::AnyMethod) && (call_seq, = directives['call-seq']) && call_seq
144-
code_object.call_seq = call_seq.lines.map(&:chomp).reject(&:empty?).join("\n") if call_seq
144+
code_object.call_seq = call_seq.lines.map(&:chomp).reject(&:empty?).join("\n")
145145
end
146146
format, = directives['markup']
147147
[comment_text, format]
148148
end
149149

150-
151150
# Perform post preocesses to a code object
152151

153152
def run_post_processes(comment, code_object)

0 commit comments

Comments
 (0)