Refactor: use unless instead of if not

This commit is contained in:
Stuart Frost 2023-08-05 19:28:47 +01:00
parent eb60b25c4e
commit 1b85ba6f22

View file

@ -238,7 +238,7 @@ class Ameba::Config
private def default_globs private def default_globs
[SOURCES_GLOB].tap do |globs| [SOURCES_GLOB].tap do |globs|
globs.push("!lib") if !Dir["lib/**/*.cr"].empty? globs.push("!lib") unless Dir["lib/**/*.cr"].empty?
end end
end end