Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
3546af03c4
commit
3713d774ec
1 changed files with 1 additions and 3 deletions
|
@ -8,9 +8,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetPort() string {
|
func GetPort() string {
|
||||||
port := os.Getenv("API_PORT")
|
if port := os.Getenv("API_PORT"); port != "" {
|
||||||
|
|
||||||
if port != "" {
|
|
||||||
return port
|
return port
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue