cut down scan spam

slack
Jordan Orelli 10 years ago
parent 8100e5e6df
commit 51409c4f56

@ -23,11 +23,11 @@ type scanResult struct {
} }
func (r *scanResult) Empty() bool { func (r *scanResult) Empty() bool {
return r.players == nil && r.colonizedBy == nil return (r.players == nil || len(r.players) == 0) && r.colonizedBy == nil
} }
func (r *scanResult) playerNames() []string { func (r *scanResult) playerNames() []string {
if r.players == nil { if r.players == nil || len(r.players) == 0 {
return nil return nil
} }
names := make([]string, 0, len(r.players)) names := make([]string, 0, len(r.players))

Loading…
Cancel
Save