Skip to content

Commit

Permalink
style: Better alias
Browse files Browse the repository at this point in the history
  • Loading branch information
taorepoara committed Feb 9, 2025
1 parent 4f1fa6c commit 4e976af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/lenra/lib/lenra/apps.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Lenra.Apps do
import Ecto.Query

alias ApplicationRunner.ApplicationServices
alias ApplicationRunner.Environment.DynamicSupervisor
alias ApplicationRunner.Environment.DynamicSupervisor, as: EnvDynamicSupervisor

Check warning on line 23 in apps/lenra/lib/lenra/apps.ex

View workflow job for this annotation

GitHub Actions / server checks

Avoid using the :as option with alias.
alias ApplicationRunner.MongoStorage.MongoUserLink
alias Lenra.Repo
alias Lenra.Subscriptions
Expand Down Expand Up @@ -855,7 +855,7 @@ defmodule Lenra.Apps do
} <- Repo.preload(scale_opt, environment: [:application, deployment: [:build]]),
function_name <- OpenfaasServices.get_function_name(service_name, build_number),
effective_scale_opts <- effective_env_scale_options(env),
:ok <- DynamicSupervisor.update_env_scale_options(env_id, effective_scale_opts),
:ok <- EnvDynamicSupervisor.update_env_scale_options(env_id, effective_scale_opts),
{:ok, _} <- ApplicationServices.set_app_scale_options(function_name, effective_scale_opts) do
{:ok, scale_opt}
end
Expand Down

0 comments on commit 4e976af

Please sign in to comment.