From 730ecb9ea488190677195479265c9ad3d259a7a1 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Wed, 15 Nov 2023 08:05:18 +1100 Subject: [PATCH] Linting --- app/views/tags/index.rb | 2 +- lib/adamantium/client/blue_sky.rb | 8 ++++---- slices/admin/views/trips/show.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/tags/index.rb b/app/views/tags/index.rb index fccc9d1..a10f1fd 100644 --- a/app/views/tags/index.rb +++ b/app/views/tags/index.rb @@ -12,7 +12,7 @@ module Adamantium /[a-z]/.match?(grouper) ? grouper : "#" } .sort - .map { |group, tags| {group: group, tags: tags.map {|tag| {tag: tag, count: tag.posts.count} }} } + .map { |group, tags| {group: group, tags: tags.map { |tag| {tag: tag, count: tag.posts.count} }} } end end end diff --git a/lib/adamantium/client/blue_sky.rb b/lib/adamantium/client/blue_sky.rb index 1aed047..0d61986 100644 --- a/lib/adamantium/client/blue_sky.rb +++ b/lib/adamantium/client/blue_sky.rb @@ -17,10 +17,10 @@ module Adamantium end content = if post[:name] - "#{post[:name]} — #{settings.micropub_site_url}/post/#{post[:slug]}" - else - "#{sanitze_post(post[:content])} \r\n\r\n 🔗 #{settings.micropub_site_url}/post/#{post[:slug]}" - end + "#{post[:name]} — #{settings.micropub_site_url}/post/#{post[:slug]}" + else + "#{sanitze_post(post[:content])} \r\n\r\n 🔗 #{settings.micropub_site_url}/post/#{post[:slug]}" + end credentials = Bskyrb::Credentials.new(settings.blue_sky_username, settings.blue_sky_password) session = Bskyrb::Session.new(credentials, settings.blue_sky_url) diff --git a/slices/admin/views/trips/show.rb b/slices/admin/views/trips/show.rb index 76826eb..060fe74 100644 --- a/slices/admin/views/trips/show.rb +++ b/slices/admin/views/trips/show.rb @@ -7,7 +7,7 @@ module Admin include Deps["repos.trip_repo", "repos.post_repo"] expose :trip do |id:| - trip = trip_repo.fetch(id) + trip_repo.fetch(id) end expose :trip_summary do |trip|