parent
e6f883a9b5
commit
31355467a5
|
@ -70,6 +70,14 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
|
|||
|
||||
// returns the filesystem path to the repo
|
||||
func (rs *RepoStatus) Path() string {
|
||||
if rs == nil {
|
||||
log.Warn("rs == nil")
|
||||
return ""
|
||||
}
|
||||
if rs.realPath == nil {
|
||||
log.Warn("rs.realPath == nil")
|
||||
return ""
|
||||
}
|
||||
return rs.realPath.String()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue