Skip to content

Commit

Permalink
fix: plugin getByName method error handling (#6016)
Browse files Browse the repository at this point in the history
* plugin fix

* reverted errnorows change
  • Loading branch information
kartik-579 authored Oct 24, 2024
1 parent 7345e60 commit 78709a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugin/GlobalPluginService.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (impl *GlobalPluginServiceImpl) GetRefPluginIdByRefPluginName(pluginName st
impl.logger.Errorw("error in fetching plugin metadata by name", "err", err)
return nil, err
}
if pluginMetadata == nil {
if len(pluginMetadata) == 0 {
return nil, nil
}
pluginVersionDetail = make([]bean2.PluginsVersionDetail, 0)
Expand Down

0 comments on commit 78709a3

Please sign in to comment.