summaryrefslogtreecommitdiffstats
path: root/adapter/mock
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2017-11-30 09:08:17 +0100
committerOndrej Fabry <ofabry@cisco.com>2017-11-30 09:08:17 +0100
commitacf57209ccbd67fa96644abe5aef65f58264c112 (patch)
tree59ed1cdcca28f21d4eee9451de031e41c500c710 /adapter/mock
parent67482a4f8c3a3a7cf17b4edf82e61c28b318ffd9 (diff)
Removes unnecessary returned func from WaitReady
Change-Id: I34889c8c79fa8ef7a196f8d067edca7f1cb5ad33 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/mock')
-rw-r--r--adapter/mock/mock_adapter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/adapter/mock/mock_adapter.go b/adapter/mock/mock_adapter.go
index f85f17d..5407696 100644
--- a/adapter/mock/mock_adapter.go
+++ b/adapter/mock/mock_adapter.go
@@ -295,8 +295,8 @@ func (a *VppAdapter) SetMsgCallback(cb func(context uint32, msgID uint16, data [
}
// WaitReady mocks waiting for VPP
-func (a *VppAdapter) WaitReady() func() error {
- return func() error { return nil }
+func (a *VppAdapter) WaitReady() error {
+ return nil
}
// MockReply stores a message to be returned when the next request comes. It is a FIFO queue - multiple replies