Commit 02913859 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

removed one-liner function getVersion and implemented inline instead

parent 34eae9b9
......@@ -30,7 +30,7 @@ func GetDiag(d* Diag) error {
return fmt.Errorf("error occured while contacting Restcountries API: %s", err)
}
getVersion(d)
d.Version = "v1"
getUptime(d)
return nil
......@@ -54,10 +54,6 @@ func getRestStatus(d *Diag) error {
return nil
}
func getVersion(d *Diag) {
d.Version = "v1"
}
// Returns application uptime in seconds
func getUptime(d *Diag) {
up := time.Since(startTime).Seconds()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment