From 45a1d343b75d4519351ba7e8f7b4cfc91cebea12 Mon Sep 17 00:00:00 2001 From: Barak Amar Date: Mon, 11 Jan 2021 12:27:21 +0200 Subject: [PATCH] make sure to return empty diff resutls (#1175) --- catalog/rocks/cataloger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/rocks/cataloger.go b/catalog/rocks/cataloger.go index e48cbd7fdaa..b5fa8c9f541 100644 --- a/catalog/rocks/cataloger.go +++ b/catalog/rocks/cataloger.go @@ -507,7 +507,7 @@ func listDiffHelper(it EntryDiffIterator, limit int, after string) (catalog.Diff if afterPath != "" { it.SeekGE(afterPath) } - var diffs catalog.Differences + diffs := make(catalog.Differences, 0) for it.Next() { v := it.Value() if v.Path == afterPath {