Skip to content

Commit 833a86e

Browse files
committed
fixing syntax
1 parent b4ac029 commit 833a86e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/peer/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,13 @@ func (c *Config) GetPeerEndpoint(i int) string {
382382
if endpoint != "" {
383383
return endpoint
384384
}
385-
385+
} else {
386386
endpoint := c.peers[i].config.Endpoint
387387
if endpoint != nil {
388388
return endpoint.String()
389389
}
390390
}
391+
return ""
391392
}
392393

393394
func (c *Config) GetLocalhostIP() string {

src/peer/peer_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (p *PeerConfig) MarshalJSON() ([]byte, error) {
121121
p.config,
122122
p.privateKey,
123123
p.nickname,
124-
p.endpointDNS
124+
p.endpointDNS,
125125
})
126126
}
127127

0 commit comments

Comments
 (0)