Skip to content

Commit

Permalink
Fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
lawik committed Oct 28, 2024
1 parent 812d427 commit c3ec7c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/nerves_hub_link/features/features.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ defmodule NervesHubLink.Features do
String.t() => %{
attached?: boolean(),
module: module(),
version: Version.__version__()
version: boolean()
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion lib/nerves_hub_link/features/geo/default_resolver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule NervesHubLink.Features.Geo.DefaultResolver do
case Whenwhere.asks() do
{:ok, resp} ->
payload = %{
source: :geoip,
source: "geoip",
latitude: resp[:latitude],
longitude: resp[:longitude]
}
Expand Down
2 changes: 1 addition & 1 deletion lib/nerves_hub_link/features/health/default_report.ex
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ defmodule NervesHubLink.Features.Health.DefaultReport do

defp cpu_util do
case :cpu_sup.util([]) do
{:all, usage, _} ->
{:all, usage, _, _} ->
%{cpu_usage_percent: usage}

_ ->
Expand Down
2 changes: 1 addition & 1 deletion lib/nerves_hub_link/features/health/health.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule NervesHubLink.Features.Health do

@impl NervesHubLink.Features
def handle_event("health:check", _msg, state) do
push("report", %{"value" => check_health()})
_ = push("report", %{"value" => check_health()})
{:noreply, state}
end

Expand Down

0 comments on commit c3ec7c5

Please sign in to comment.