From 986886c54255e319609afff1645fe8ddf4bde7a1 Mon Sep 17 00:00:00 2001 From: osc-bot Date: Sat, 28 Oct 2023 02:11:25 +0000 Subject: [PATCH] lint a random file --- apps/dashboard/app/models/dev_product.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/app/models/dev_product.rb b/apps/dashboard/app/models/dev_product.rb index 15ebaa4cb6..40468d1ac7 100644 --- a/apps/dashboard/app/models/dev_product.rb +++ b/apps/dashboard/app/models/dev_product.rb @@ -1,12 +1,15 @@ +# frozen_string_literal: true + # A Product class for development apps. class DevProduct < Product class << self def all - router.apps.map {|a| new(name: a.name, found: true)} + router.apps.map { |a| new(name: a.name, found: true) } end def find(name) raise Product::NotFound unless router.new(name).path.exist? + new(name: name, found: true) end