diff --git a/.formatter.exs b/.formatter.exs index a6ad6924..4b3f32a9 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -4,6 +4,6 @@ plugins: [Phoenix.LiveView.HTMLFormatter, Quokka], inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"], quokka: [ - only: [:blocks, :module_directives, :pipes, :single_node] + only: [:blocks, :defs, :deprecations, :module_directives, :pipes, :single_node] ] ] diff --git a/lib/last_fm/api/error_response.ex b/lib/last_fm/api/error_response.ex index 08c34bcc..52c61c12 100644 --- a/lib/last_fm/api/error_response.ex +++ b/lib/last_fm/api/error_response.ex @@ -24,12 +24,7 @@ defmodule LastFm.API.ErrorResponse do Returns true if the error is retryable, false otherwise. """ def retryable_error?(error) - when error in [ - :transient_error, - :service_offline, - :rate_limit_exceeded, - :operation_failed - ], + when error in [:transient_error, :service_offline, :rate_limit_exceeded, :operation_failed], do: true def retryable_error?(_error), do: false