From 3ac08a73c0ea0c51a7100e0cd95a9ab0781cf7d5 Mon Sep 17 00:00:00 2001 From: osc-bot Date: Tue, 19 Mar 2024 02:13:22 +0000 Subject: [PATCH] lint a random file --- apps/dashboard/app/apps/favorite_path.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/app/apps/favorite_path.rb b/apps/dashboard/app/apps/favorite_path.rb index 772c71e29e..8a8401089e 100644 --- a/apps/dashboard/app/apps/favorite_path.rb +++ b/apps/dashboard/app/apps/favorite_path.rb @@ -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