-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update specs in helpers
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ defmodule GogsHelpers do | |
"[email protected]:" | ||
""" | ||
@spec make_url(String.t(), integer()) :: String.t() | ||
@spec make_url(String.t(), integer() | nil) :: String.t() | ||
def make_url(git_url, port \\ 0) | ||
def make_url(git_url, port) when port > 0, do: "ssh://git@#{git_url}:#{port}/" | ||
def make_url(git_url, _port), do: "git@#{git_url}:" | ||
|
@@ -104,6 +104,7 @@ defmodule GogsHelpers do | |
else | ||
Path.join([temp_dir(@git_dir), org, repo]) |> Path.expand() | ||
end | ||
|
||
# coveralls-ignore-stop | ||
end | ||
|
||
|