From 83c02f7a11617b75f5dd65726262336075895637 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton Date: Thu, 22 Feb 2024 18:49:28 +0100 Subject: [PATCH] libnet/ds: remove extra space in error msg Signed-off-by: Albin Kerouanton --- libnetwork/datastore/datastore.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnetwork/datastore/datastore.go b/libnetwork/datastore/datastore.go index 97dd3abe75..0e38358abb 100644 --- a/libnetwork/datastore/datastore.go +++ b/libnetwork/datastore/datastore.go @@ -156,7 +156,7 @@ func (ds *Store) PutObjectAtomic(kvObject KVObject) error { defer ds.mu.Unlock() if kvObject == nil { - return types.InvalidParameterErrorf("invalid KV Object : nil") + return types.InvalidParameterErrorf("invalid KV Object: nil") } kvObjValue := kvObject.Value() @@ -269,7 +269,7 @@ func (ds *Store) DeleteObject(kvObject KVObject) error { defer ds.mu.Unlock() if kvObject == nil { - return types.InvalidParameterErrorf("invalid KV Object : nil") + return types.InvalidParameterErrorf("invalid KV Object: nil") } if !kvObject.Skip() { @@ -290,7 +290,7 @@ func (ds *Store) DeleteObjectAtomic(kvObject KVObject) error { defer ds.mu.Unlock() if kvObject == nil { - return types.InvalidParameterErrorf("invalid KV Object : nil") + return types.InvalidParameterErrorf("invalid KV Object: nil") } previous := &store.KVPair{Key: Key(kvObject.Key()...), LastIndex: kvObject.Index()}