Use more precise types
This commit is contained in:
@@ -48,7 +48,7 @@ defmodule LastFm.Config do
|
|||||||
)
|
)
|
||||||
|
|
||||||
@doc NimbleOptions.docs(@schema)
|
@doc NimbleOptions.docs(@schema)
|
||||||
@spec resolve(atom) :: t | no_return
|
@spec resolve(Application.app()) :: t | no_return
|
||||||
def resolve(otp_app) do
|
def resolve(otp_app) do
|
||||||
app_config =
|
app_config =
|
||||||
Application.get_env(otp_app, LastFm)
|
Application.get_env(otp_app, LastFm)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ defmodule MusicBrainz.Config do
|
|||||||
)
|
)
|
||||||
|
|
||||||
@doc NimbleOptions.docs(@schema)
|
@doc NimbleOptions.docs(@schema)
|
||||||
@spec resolve(atom) :: t | no_return
|
@spec resolve(Application.app()) :: t | no_return
|
||||||
def resolve(otp_app) do
|
def resolve(otp_app) do
|
||||||
app_config =
|
app_config =
|
||||||
Application.get_env(otp_app, MusicBrainz)
|
Application.get_env(otp_app, MusicBrainz)
|
||||||
|
|||||||
Reference in New Issue
Block a user