Skip to content

Commit 2a8d35c

Browse files
committed
Fix a linting issue
1 parent 2389a1b commit 2a8d35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/block_kit/concerns/has_initial_option.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module BlockKit
44
module Concerns
55
module HasInitialOption
66
def initial_option
7-
all_options&.reverse&.find(&:initial?)
7+
all_options&.rfind(&:initial?)
88
end
99

1010
def as_json(*)

0 commit comments

Comments
 (0)