Skip to content

Commit

Permalink
lint a random file (#2560)
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot authored Feb 10, 2023
1 parent ad20ba2 commit 549aadd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/dashboard/app/apps/ood_files_app.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Utility class for dealing with apps that play "files" role.
class OodFilesApp
class << self
Expand All @@ -8,7 +10,6 @@ class << self
end
self.candidate_favorite_paths = []


# esure that [] is returned if class variable is not set
def candidate_favorite_paths
(self.class.candidate_favorite_paths || []).map { |path| FavoritePath.new(path) }
Expand All @@ -18,7 +19,8 @@ def candidate_favorite_paths
# a link to the user's home directory
# returns an array of other paths provided as shortcuts to the user
def favorite_paths
@favorite_paths ||= candidate_favorite_paths.select {|p| p.remote? || p.path.directory? && p.path.readable? && p.path.executable? }
@favorite_paths ||= candidate_favorite_paths.select do |p|
p.remote? || p.path.directory? && p.path.readable? && p.path.executable?
end
end

end

0 comments on commit 549aadd

Please sign in to comment.