Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Schinn committed Aug 26, 2020
1 parent 88f07ab commit 0352b41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"encoding/json"
"errors"
"errors"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -80,9 +80,9 @@ func (hc *HealthCheckWebService) apiGetIsReplica(w http.ResponseWriter, r *http.
}

func main() {
if len(os.Args) < 2 {
panic(errors.New("Please provide a path to config yml."))
}
if len(os.Args) < 2 {
panic(errors.New("Please provide a path to config yml."))
}
pathToConfig := os.Args[1]

cfg, err := config.ParseConfig(pathToConfig)
Expand Down

0 comments on commit 0352b41

Please sign in to comment.