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