Skip to content

Commit

Permalink
home: imp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Feb 5, 2021
1 parent e3c2310 commit f61e236
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/home/whois.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ func whoisParse(data string) map[string]string {
}
}

// descr or netname -> orgname
_, ok := m["orgname"]
if !ok {
if len(descr) != 0 {
// Set orgname from either descr or netname for the frontent.
//
// TODO(a.garipov): Perhaps don't do that in the V1 HTTP API?
if descr != "" {
m["orgname"] = trimValue(descr)
} else if len(netname) != 0 {
} else if netname != "" {
m["orgname"] = trimValue(netname)
}
}
Expand Down

0 comments on commit f61e236

Please sign in to comment.