Fix coding standards
This commit is contained in:
parent
d0a4f40069
commit
795c7efd3c
@ -106,14 +106,10 @@ module Additionals
|
||||
end
|
||||
|
||||
def status_x_affected?(new_status_id)
|
||||
return false unless Additionals.setting?(:issue_current_user_status)
|
||||
return false unless Additionals.setting? :issue_current_user_status
|
||||
return false if Additionals.setting(:issue_assign_to_x).blank?
|
||||
|
||||
if Additionals.setting(:issue_assign_to_x).include?(new_status_id.to_s)
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
Additionals.setting(:issue_assign_to_x).include? new_status_id.to_s
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -21,12 +21,7 @@ module Additionals
|
||||
|
||||
width = options[:width].presence || 640
|
||||
height = options[:height].presence || 360
|
||||
|
||||
autoplay = if !options[:autoplay].nil? && Additionals.true?(options[:autoplay])
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
autoplay = !options[:autoplay].nil? && Additionals.true?(options[:autoplay])
|
||||
|
||||
raise 'The correct usage is {{vimeo(<video key>[, width=x, height=y])}}' if args.empty?
|
||||
|
||||
|
@ -21,12 +21,7 @@ module Additionals
|
||||
|
||||
width = options[:width].presence || 640
|
||||
height = options[:height].presence || 360
|
||||
|
||||
autoplay = if !options[:autoplay].nil? && Additionals.true?(options[:autoplay])
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
autoplay = !options[:autoplay].nil? && Additionals.true?(options[:autoplay])
|
||||
|
||||
raise 'The correct usage is {{youtube(<video key>[, width=x, height=y])}}' if args.empty?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user