Skip to content

Commit

Permalink
return func instead of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
bosorawis committed Feb 6, 2024
1 parent b4a7f3e commit 2869fcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pluginutil/pluginutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ func CreatePlugin(plugin *PluginInfo, opt ...Option) (interface{}, func() error,
// Prioritize in-memory functions
case plugin.InmemCreationFunc != nil:
raw, err := plugin.InmemCreationFunc()
return raw, nil, err
return raw, func() error {
return nil
}, err

// If not in-memory we need a filename, whether direct on disk or from a container FS
case plugin.Path == "":
Expand Down

0 comments on commit 2869fcb

Please sign in to comment.