rm obsolete code
This commit is contained in:
parent
e14fde1546
commit
7cc064dec0
9
init.go
9
init.go
|
@ -3,7 +3,6 @@ package repolist
|
|||
import (
|
||||
"go.wit.com/gui"
|
||||
"go.wit.com/lib/protobuf/forgepb"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
|
||||
|
@ -25,9 +24,9 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
|
|||
for repos.Scan() {
|
||||
repo := repos.Next()
|
||||
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
|
||||
log.Info("repo scan readonly directory:", repo.FullPath)
|
||||
// log.Info("repo scan readonly directory:", repo.FullPath)
|
||||
} else {
|
||||
log.Info("repo scan writable directory:", repo.FullPath)
|
||||
// log.Info("repo scan writable directory:", repo.FullPath)
|
||||
me.AddRepo(repo)
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +50,9 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
|
|||
for repos.Scan() {
|
||||
repo := repos.Next()
|
||||
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
|
||||
log.Info("repo scan readonly directory:", repo.FullPath)
|
||||
// log.Info("repo scan readonly directory:", repo.FullPath)
|
||||
} else {
|
||||
log.Info("repo scan writable directory:", repo.FullPath)
|
||||
// log.Info("repo scan writable directory:", repo.FullPath)
|
||||
me.AddRepo(repo)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue