Skip to content

Commit beaaa93

Browse files
committed
make rubocop happy
1 parent f90fc88 commit beaaa93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/org_admin/templates_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def parse_visibility(args, org)
386386
# If present, we parse to retrieve the value
387387
if args[:visibility].nil?
388388
org.funder? ? Template.visibilities[:publicly_visible] : Template.visibilities[:organisationally_visible]
389-
elsif ['0', 'organisationally_visible'].include?(args.fetch(:visibility, 'publicly_visible'))
389+
elsif %w[0 organisationally_visible].include?(args.fetch(:visibility, 'publicly_visible'))
390390
Template.visibilities[:organisationally_visible]
391391
else
392392
Template.visibilities[:publicly_visible]

0 commit comments

Comments
 (0)