diff options
-rw-r--r-- | components/storage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/storage.rb b/components/storage.rb index d34dac7..cba3dd0 100644 --- a/components/storage.rb +++ b/components/storage.rb @@ -33,7 +33,7 @@ module NanoBot [ ENV.fetch('NANO_BOTS_CARTRIDGES_DIRECTORY', nil), "#{user_home!.sub(%r{/$}, '')}/.local/share/nano-bots/cartridges" - ].uniq.filter { |path| File.directory?(path) }.compact.first + ].compact.uniq.filter { |path| File.directory?(path) }.compact.first end def self.cartridge_path(path) |