Skip to content

Commit

Permalink
lint a random file (#3431)
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot authored Mar 19, 2024
1 parent 5a3082a commit adb997f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/dashboard/app/apps/favorite_path.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# frozen_string_literal: true

# FavoritePath is a class that the dashboard uses to build
# links to various directories.
#
# Sites use initializers to create FavoritePaths and add them to
# OodFilesApp.candidate_favorite_paths.
class FavoritePath
def initialize(path, title:nil, filesystem:nil)
def initialize(path, title: nil, filesystem: nil)
@title = title || path.try(:title)
@path = Pathname.new(path.to_s)
@filesystem = filesystem || path.try(:filesystem) || "fs"
@filesystem = filesystem || path.try(:filesystem) || 'fs'
end

attr_accessor :path, :title, :filesystem

def remote?
filesystem != "fs"
filesystem != 'fs'
end

# FontAwesome icon to use for links
Expand Down

0 comments on commit adb997f

Please sign in to comment.