Skip to content

Commit 8c3ba58

Browse files
lib/go/thrift/types/annotation/naming: Handle empty namespace
1 parent 5252901 commit 8c3ba58

File tree

1 file changed

+1
-1
lines changed
  • lib/go/thrift/types/annotation/naming

1 file changed

+1
-1
lines changed

lib/go/thrift/types/annotation/naming/naming.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func init() {
1212
lns := pka.GetNamespace_()
1313
ln := pka.GetName()
1414

15-
if lns == "" {
15+
if pka.Namespace_ == nil {
1616
lns = ns
1717
}
1818

0 commit comments

Comments
 (0)