Fix coding standards

This commit is contained in:
Alexander Meindl 2021-01-29 08:39:31 +01:00
parent d0a4f40069
commit 795c7efd3c
3 changed files with 4 additions and 18 deletions

View File

@ -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

View File

@ -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?

View File

@ -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?