Skip to content

Commit 78709a3

Browse files
authored
fix: plugin getByName method error handling (#6016)
* plugin fix * reverted errnorows change
1 parent 7345e60 commit 78709a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugin/GlobalPluginService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func (impl *GlobalPluginServiceImpl) GetRefPluginIdByRefPluginName(pluginName st
389389
impl.logger.Errorw("error in fetching plugin metadata by name", "err", err)
390390
return nil, err
391391
}
392-
if pluginMetadata == nil {
392+
if len(pluginMetadata) == 0 {
393393
return nil, nil
394394
}
395395
pluginVersionDetail = make([]bean2.PluginsVersionDetail, 0)

0 commit comments

Comments
 (0)