Add questions for review discussion
This commit is contained in:
parent
8a8b6821ba
commit
0378b2dc7d
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ func NewPersonId(uri string, source string) (PersonId, error) {
|
||||||
// return PersonId{}, fmt.Errorf("uri %s is not a valid external url", uri)
|
// return PersonId{}, fmt.Errorf("uri %s is not a valid external url", uri)
|
||||||
//}
|
//}
|
||||||
|
|
||||||
validatedUri, _ := url.Parse(uri)
|
validatedUri, _ := url.Parse(uri) // ToDo: Why no err treatment at this place?
|
||||||
pathWithActorID := strings.Split(validatedUri.Path, "/")
|
pathWithActorID := strings.Split(validatedUri.Path, "/")
|
||||||
if containsEmptyString(pathWithActorID) {
|
if containsEmptyString(pathWithActorID) {
|
||||||
pathWithActorID = removeEmptyStrings(pathWithActorID)
|
pathWithActorID = removeEmptyStrings(pathWithActorID)
|
||||||
|
@ -66,7 +66,7 @@ func NewRepositoryId(uri string, source string) (RepositoryId, error) {
|
||||||
return RepositoryId{}, fmt.Errorf("uri %s is not a valid repo url on this host %s", uri, setting.AppURL+"api")
|
return RepositoryId{}, fmt.Errorf("uri %s is not a valid repo url on this host %s", uri, setting.AppURL+"api")
|
||||||
}
|
}
|
||||||
|
|
||||||
validatedUri, _ := url.Parse(uri)
|
validatedUri, _ := url.Parse(uri) // ToDo: Why no err treatment at this place?
|
||||||
pathWithActorID := strings.Split(validatedUri.Path, "/")
|
pathWithActorID := strings.Split(validatedUri.Path, "/")
|
||||||
if containsEmptyString(pathWithActorID) {
|
if containsEmptyString(pathWithActorID) {
|
||||||
pathWithActorID = removeEmptyStrings(pathWithActorID)
|
pathWithActorID = removeEmptyStrings(pathWithActorID)
|
||||||
|
|
Loading…
Reference in a new issue