[ruby/prism] switch unless to if

https://github.com/ruby/prism/commit/29bdbf4212

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
This commit is contained in:
Adam Hess 2024-01-19 12:41:23 -08:00 коммит произвёл git
Родитель cfabe9c51c
Коммит ac4046d34b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -118,7 +118,7 @@ module Prism
current = current.parent
end
unless current.is_a?(ConstantReadNode) || current == nil
if !current.is_a?(ConstantReadNode) && !current.nil?
raise DynamicPartsInConstantPathError, "Constant path contains dynamic parts. Cannot compute full name"
end