Skip to content

Commit 2e15139

Browse files
author
jordanbreen28
committed
(maint) - Correct Style/RedundantSelfAssignmentBranch
1 parent 39a9b03 commit 2e15139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-strings/yard/handlers/ruby/function_handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def add_param_tag(object, tags, name, file, line, type = nil, default = nil, opt
322322
end
323323

324324
type ||= tag&.types ? tag.type : 'Any'
325-
type = optional ? "Optional[#{type}]" : type
325+
type = "Optional[#{type}]" if optional
326326

327327
object.parameters << [name, to_puppet_literal(default)]
328328

0 commit comments

Comments
 (0)