mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
fix nil pointer
This commit is contained in:
@@ -112,7 +112,7 @@ func main() {
|
||||
}
|
||||
|
||||
// define the default public api values
|
||||
var publicApi *PublicAPI
|
||||
publicApi := new(*PublicAPI)
|
||||
|
||||
// if we find a public api definition we load it
|
||||
if b, err := ioutil.ReadFile(filepath.Join(serviceDir, "publicapi.json")); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user