Skip to content

Commit 4ceccd4

Browse files
committed
[FAB-9643] Remove unreachable nil check
This change set removes a nil check that is unreachable in the code. The function retrieveCollectionConfigPackage can never return (nil, nil), yet the caller function retrieveSimpleCollection checks for that condition. Change-Id: I4731b5a219626aae081a39097666b10e2a06ae0f Signed-off-by: yacovm <yacovm@il.ibm.com>
1 parent 7dc4a86 commit 4ceccd4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/common/privdata/store.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ func (c *simpleCollectionStore) retrieveSimpleCollection(cc common.CollectionCri
7777
if err != nil {
7878
return nil, err
7979
}
80-
if collections == nil {
81-
return nil, nil
82-
}
8380

8481
for _, cconf := range collections.Config {
8582
switch cconf := cconf.Payload.(type) {

0 commit comments

Comments
 (0)