Skip to content

Commit

Permalink
Fix minor dialyzer/credo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jan 23, 2023
1 parent ede2de1 commit 00f57f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/vintage_net_qmi/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ defmodule VintageNetQMI.Connection do
use GenServer

alias QMI.{NetworkAccess, WirelessData}
alias VintageNetQMI.ServiceProvider
alias VintageNetQMI.Connection.Configuration
alias VintageNetQMI.ServiceProvider

require Logger

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ defmodule VintageNetQMI.Connection.Configuration do
be considered complete.
"""
@type t() :: %{
reporting_connection_stats: boolean(),
radio_technologies_set: boolean()
optional(:reporting_connection_stats) => boolean(),
:radio_technologies_set => boolean()
}

@type configuration_setting() :: :reporting_connection_stats | :radio_technologies_set
Expand All @@ -44,7 +44,7 @@ defmodule VintageNetQMI.Connection.Configuration do
@doc """
Create a new connection configuration with all fields marked as not configured
"""
@spec new() :: t()
@spec new() :: %{reporting_connection_stats: false, radio_technologies_set: false}
def new() do
%{reporting_connection_stats: false, radio_technologies_set: false}
end
Expand Down

0 comments on commit 00f57f2

Please sign in to comment.