Merge pull request #524 from safing/fix/network-tree

Remove broken network key prefix check
This commit is contained in:
Daniel
2022-02-10 14:57:05 +01:00
committed by GitHub

View File

@@ -48,10 +48,6 @@ func makeKey(pid int, scope, id string) string {
func parseDBKey(key string) (pid int, scope, id string, ok bool) {
// Split into segments.
segments := strings.Split(key, "/")
// Check for valid prefix.
if segments[0] != "tree" {
return 0, "", "", false
}
// Keys have 2 or 4 segments.
switch len(segments) {