From 245db6a7fe87ff54cca68f7d1bfcd102f6698853 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 16 Sep 2020 12:08:46 +0800 Subject: [PATCH] rpcserver: fix make lint --- rpcserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index 95cc6904..53e0f88e 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1997,8 +1997,8 @@ out: // If a final channel open update is being sent, then // we can break out of our recv loop as we no longer // need to process any further updates. - switch update := fundingUpdate.Update.(type) { - case *lnrpc.OpenStatusUpdate_ChanOpen: + update, ok := fundingUpdate.Update.(*lnrpc.OpenStatusUpdate_ChanOpen) + if ok { chanPoint := update.ChanOpen.ChannelPoint txid, err := GetChanPointFundingTxid(chanPoint) if err != nil {