forked from TrueCloudLab/frostfs-sdk-go
linter: Fix fmt.Errorf format for type variable
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
This commit is contained in:
parent
5d3fcd6f55
commit
6757c0a706
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ func (sg *StorageGroup) UnmarshalJSON(data []byte) error {
|
||||||
// error if object is not of TypeStorageGroup type.
|
// error if object is not of TypeStorageGroup type.
|
||||||
func ReadFromObject(sg *StorageGroup, o objectSDK.Object) error {
|
func ReadFromObject(sg *StorageGroup, o objectSDK.Object) error {
|
||||||
if typ := o.Type(); typ != objectSDK.TypeStorageGroup {
|
if typ := o.Type(); typ != objectSDK.TypeStorageGroup {
|
||||||
return fmt.Errorf("object is not of StorageGroup type: %s", typ)
|
return fmt.Errorf("object is not of StorageGroup type: %v", typ)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := sg.Unmarshal(o.Payload())
|
err := sg.Unmarshal(o.Payload())
|
||||||
|
|
Loading…
Reference in a new issue