mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class S3RegionSiteSetting < EnumSiteSetting
|
||||
|
||||
def self.valid_value?(val)
|
||||
valid_values.include? val
|
||||
end
|
||||
@ -11,29 +10,29 @@ class S3RegionSiteSetting < EnumSiteSetting
|
||||
end
|
||||
|
||||
def self.valid_values
|
||||
[
|
||||
'ap-northeast-1',
|
||||
'ap-northeast-2',
|
||||
'ap-east-1',
|
||||
'ap-south-1',
|
||||
'ap-southeast-1',
|
||||
'ap-southeast-2',
|
||||
'ca-central-1',
|
||||
'cn-north-1',
|
||||
'cn-northwest-1',
|
||||
'eu-central-1',
|
||||
'eu-north-1',
|
||||
'eu-south-1',
|
||||
'eu-west-1',
|
||||
'eu-west-2',
|
||||
'eu-west-3',
|
||||
'sa-east-1',
|
||||
'us-east-1',
|
||||
'us-east-2',
|
||||
'us-gov-east-1',
|
||||
'us-gov-west-1',
|
||||
'us-west-1',
|
||||
'us-west-2',
|
||||
%w[
|
||||
ap-northeast-1
|
||||
ap-northeast-2
|
||||
ap-east-1
|
||||
ap-south-1
|
||||
ap-southeast-1
|
||||
ap-southeast-2
|
||||
ca-central-1
|
||||
cn-north-1
|
||||
cn-northwest-1
|
||||
eu-central-1
|
||||
eu-north-1
|
||||
eu-south-1
|
||||
eu-west-1
|
||||
eu-west-2
|
||||
eu-west-3
|
||||
sa-east-1
|
||||
us-east-1
|
||||
us-east-2
|
||||
us-gov-east-1
|
||||
us-gov-west-1
|
||||
us-west-1
|
||||
us-west-2
|
||||
]
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user