Skip to content

Commit 883ae2b

Browse files
committed
Use #kind_of? for consistency
1 parent bda405f commit 883ae2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/power_assert/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def extract_idents(sexp)
7878
_, _, (_, op_name, (_, op_column)), s0 = sexp
7979
extract_idents(s0) + [Ident[:method, op_name.sub(/=\z/, ''), op_column]]
8080
when :dyna_symbol
81-
if sexp[1][0].is_a? Symbol
81+
if sexp[1][0].kind_of?(Symbol)
8282
# sexp[1] can be [:string_content, [..]] while parsing { "a": 1 }
8383
extract_idents(sexp[1])
8484
else

0 commit comments

Comments
 (0)