Skip to content

Commit

Permalink
Merge pull request #47 from kinnou02/labels
Browse files Browse the repository at this point in the history
fix labels
  • Loading branch information
TeXitoi authored Apr 24, 2018
2 parents 2b49f62 + 8fd7f17 commit 04f51cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions serializer/pt.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ func NewPtDisplayInfoForRoute(pb *pbnavitia.PtDisplayInfo) *gonavitia.PtDisplayI
if pb == nil {
return nil
}
var label string
var label *string
if code := pb.GetCode(); len(code) > 0 {
label = code
label = &code
} else {
label = pb.GetName()
label = pb.Name
}
info := gonavitia.PtDisplayInfo{
Direction: pb.GetDirection(),
Expand Down

0 comments on commit 04f51cc

Please sign in to comment.