function name cleanups

This commit is contained in:
Jeff Carr 2024-12-04 15:36:28 -06:00
parent 73756cf5fa
commit 2d22e4132d
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
repos := me.forge.Repos.SortByGoPath()
for repos.Scan() {
repo := repos.Next()
if me.forge.IsReadOnly(repo) {
if me.forge.Config.IsReadOnly(repo.GoPath) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)
@ -50,7 +50,7 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
repos := me.forge.Repos.SortByGoPath()
for repos.Scan() {
repo := repos.Next()
if me.forge.IsReadOnly(repo) {
if me.forge.Config.IsReadOnly(repo.GoPath) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)