Update Libp2p to v0.27.5 (#12486)

* add deps

* update to v0.27.5 and handle panic
This commit is contained in:
Nishant Das
2023-06-06 08:41:15 +08:00
committed by GitHub
parent d543e9be00
commit 33cf52831c
4 changed files with 175 additions and 157 deletions

View File

@@ -103,5 +103,8 @@ func funcReturnType(obj types.Type) (*types.Basic, bool) {
if !ok {
return nil, ok
}
if fnTyp.Results().Len() == 0 {
return nil, false
}
return basicType(fnTyp.Results().At(0).Type())
}