From 312b5d6628434963516853404bb67688dbdd1b6c Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 27 Apr 2018 12:35:38 +0200 Subject: [PATCH] swarm/api: findPrefixOf return nil entry instead mainfest on missing file --- swarm/api/manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/api/manifest.go b/swarm/api/manifest.go index 239ec8a776..49cb111ec9 100644 --- a/swarm/api/manifest.go +++ b/swarm/api/manifest.go @@ -500,7 +500,7 @@ func (self *manifestTrie) findPrefixOf(path string, quitC chan bool) (entry *man pos = epl } } - return + return nil, 0 } // file system manifest always contains regularized paths