func getBugName(b bugs.Bug, idx int) string { if id := b.Identifier(); id != "" { return fmt.Sprintf("Issue %s", id) } else { return fmt.Sprintf("Issue %d", idx+1) } }