Skip to content

Commit

Permalink
hell-ware
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jan 17, 2024
1 parent db559a6 commit 4322253
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class Retention extends PureComponent {
let content;

if (loading) {
content = <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />;
content = <FormattedMessage id='loading_indicator.label' defaultMessage='Loading' />;
} else {
content = (
<table className='retention__table'>
Expand Down
2 changes: 1 addition & 1 deletion app/models/media_attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class MediaAttachment < ApplicationRecord
}.freeze

VIDEO_PASSTHROUGH_OPTIONS = {
video_codecs: ['h264', 'av1'].freeze,
video_codecs: %w[h264 av1].freeze,

Check failure on line 117 in app/models/media_attachment.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/PercentLiteralDelimiters: %w-literals should be delimited by ( and ). (https://rubystyle.guide#percent-literal-braces)
audio_codecs: ['aac', 'opus', nil].freeze,
colorspaces: ['yuv420p'].freeze,
options: {
Expand Down
2 changes: 1 addition & 1 deletion app/validators/poll_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PollValidator < ActiveModel::Validator
def validate(poll)
current_time = Time.now.utc

poll.errors.add(:options, I18n.t('polls.errors.too_few_options')) unless poll.options.size > 0
poll.errors.add(:options, I18n.t('polls.errors.too_few_options')) unless poll.options.size >= 1
poll.errors.add(:options, I18n.t('polls.errors.too_many_options', max: MAX_OPTIONS)) if poll.options.size > MAX_OPTIONS
poll.errors.add(:options, I18n.t('polls.errors.over_character_limit', max: MAX_OPTION_CHARS)) if poll.options.any? { |option| option.mb_chars.grapheme_length > MAX_OPTION_CHARS }
poll.errors.add(:options, I18n.t('polls.errors.duplicate_options')) unless poll.options.uniq.size == poll.options.size
Expand Down

0 comments on commit 4322253

Please sign in to comment.