Call NewImageRuntimeFromStore from NewImageRuntimeFromOptions

... so that there ultimately is only one constructor.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2020-02-07 00:50:09 +01:00
parent c02b3b5e13
commit 0f0bac4ab3

View File

@ -99,10 +99,7 @@ func NewImageRuntimeFromOptions(options storage.StoreOptions) (*Runtime, error)
if err != nil {
return nil, err
}
return &Runtime{
store: store,
}, nil
return NewImageRuntimeFromStore(store), nil
}
func setStore(options storage.StoreOptions) (storage.Store, error) {