Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 12, 2024
1 parent 5d088f7 commit 625b89f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/db_agent/lib/db_agent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule DBAgent do
defstruct [:query]
end

@spec start_link((() -> state :: any), Keyword.t()) :: GenServer.on_start()
@spec start_link((-> state :: any), Keyword.t()) :: GenServer.on_start()
def start_link(fun, opts \\ []) when is_function(fun, 0) do
opts = [init: fun, backoff: nil] ++ opts
DBConnection.start_link(__MODULE__, opts)
Expand Down
14 changes: 8 additions & 6 deletions examples/db_agent/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ defmodule DbAgent.Mixfile do
use Mix.Project

def project do
[app: :db_agent,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
[
app: :db_agent,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end

def application do
Expand Down
14 changes: 8 additions & 6 deletions examples/tcp_connection/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ defmodule TcpConnection.Mixfile do
use Mix.Project

def project do
[app: :tcp_connection,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
[
app: :tcp_connection,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end

def application do
Expand Down

0 comments on commit 625b89f

Please sign in to comment.