linter: Fix fmt.Errorf format for type variable

Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
This commit is contained in:
Evgenii Baidakov 2023-04-19 14:33:52 +04:00
parent 5d3fcd6f55
commit 6757c0a706
No known key found for this signature in database
GPG key ID: 8733EE3D72CDB4DE

View file

@ -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())