Skip to content

Commit ca5bf25

Browse files
committed
Test caverage
1 parent 54ba649 commit ca5bf25

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

go/pkg/pass1/path-walk.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ func calcNext(from pathObj) func(intf *routerIntf) pathObj {
105105

106106
// getPathObj extracts the pathObj from a pathStore.
107107
func getPathObj(store pathStore) pathObj {
108+
var result pathObj
108109
switch x := store.(type) {
109110
case *routerIntf:
110-
return x.router
111+
result = x.router
111112
case *router:
112-
return x
113+
result = x
113114
case *zone:
114-
return x
115-
default:
116-
return nil
115+
result = x
117116
}
117+
return result
118118
}
119119

120120
// clusterPathMark1 recursively finds

0 commit comments

Comments
 (0)