From f9241aa3ff23272ae7d316c6353b7928d00898df Mon Sep 17 00:00:00 2001 From: Md Mushfiqur Rahim <20mahin2020@gmail.com> Date: Mon, 15 Jun 2026 07:29:56 +0600 Subject: [PATCH] refactor: replace interface{} with any (Go 1.18+) --- matest/matest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matest/matest.go b/matest/matest.go index b361468..9309905 100644 --- a/matest/matest.go +++ b/matest/matest.go @@ -8,7 +8,7 @@ import ( ) type TestingT interface { - Errorf(format string, args ...interface{}) + Errorf(format string, args ...any) } type tHelper interface { @@ -75,7 +75,7 @@ type MultiaddrMatcher struct { // Implements the Matcher interface for gomock.Matcher // Let's us use this struct in gomock tests. Example: // Expect(mock.Method(gomock.Any(), multiaddrMatcher).Return(nil) -func (m MultiaddrMatcher) Matches(x interface{}) bool { +func (m MultiaddrMatcher) Matches(x any) bool { if m2, ok := x.(multiaddr.Multiaddr); ok { return m.Equal(m2) }