Code style fixes.

This commit is contained in:
Lain Iwakura committed 2017-11-14 16:54:04 +01:00
1 parent d11b1a1aa7
commit dae8916544
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = (ENV["MAX_CHARS"] || 500).to_i
MAX_CHARS = (ENV['MAX_CHARS'] || 500).to_i
def validate(status)
return unless status.local? && !status.reblog?