@@ -250,18 +250,14 @@ func (g *LightningTerminal) Run() error {
250250// servers that lnd started.
251251func (g * LightningTerminal ) startSubservers () error {
252252 var basicClient lnrpc.LightningClient
253-
254- host , network , tlsPath , macPath , err := g .cfg .lndConnectParams ()
255- if err != nil {
256- return err
257- }
253+ host , network , tlsPath , macPath := g .cfg .lndConnectParams ()
258254
259255 // The main RPC listener of lnd might need some time to start, it could
260256 // be that we run into a connection refused a few times. We use the
261257 // basic client connection to find out if the RPC server is started yet
262258 // because that doesn't do anything else than just connect. We'll check
263259 // if lnd is also ready to be used in the next step.
264- err = wait .NoError (func () error {
260+ err : = wait .NoError (func () error {
265261 // Create an lnd client now that we have the full configuration.
266262 // We'll need a basic client and a full client because not all
267263 // subservers have the same requirements.
@@ -645,7 +641,7 @@ func (g *LightningTerminal) showStartupInfo() error {
645641 if g .cfg .LndMode == ModeRemote {
646642 // We try to query GetInfo on the remote node to find out the
647643 // alias. But the wallet might be locked.
648- host , network , tlsPath , macPath , _ := g .cfg .lndConnectParams ()
644+ host , network , tlsPath , macPath := g .cfg .lndConnectParams ()
649645 basicClient , err := lndclient .NewBasicClient (
650646 host , tlsPath , path .Dir (macPath ), string (network ),
651647 lndclient .MacFilename (path .Base (macPath )),
0 commit comments