From 0c79c11606b6816eeb7c41b660fff102b254978d Mon Sep 17 00:00:00 2001 From: kortschak Date: Sat, 9 Aug 2014 18:13:44 +0930 Subject: [PATCH] Allow memstore instances to be started empty This allows easier debugging of web UI problem. --- cayley.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cayley.go b/cayley.go index 7e58749..c06af2a 100644 --- a/cayley.go +++ b/cayley.go @@ -193,6 +193,9 @@ func load(ts graph.TripleStore, cfg *config.Config, path, typ string) error { if path == "" { path = cfg.DatabasePath } + if path == "" { + return nil + } u, err := url.Parse(path) if err != nil || u.Scheme == "file" || u.Scheme == "" { // Don't alter relative URL path or non-URL path parameter.