forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview/models: fix redundant indirection

PullSource already contains RepoAt, we do not have to access the
optional Repo field.

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 36015515 bb08649f

verified
Changed files
+1 -1
appview
models
+1 -1
appview/models/pull.go
···
source.Branch = p.PullSource.Branch
source.Sha = p.LatestSha()
if p.PullSource.RepoAt != nil {
-
s := p.PullSource.Repo.RepoAt().String()
+
s := p.PullSource.RepoAt.String()
source.Repo = &s
}
}