Made vet happy

This commit is contained in:
Jef Roosens 2022-04-06 17:57:05 +02:00
parent e9d7858380
commit 75dfc5267b
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
9 changed files with 6 additions and 11 deletions

View file

@ -9,6 +9,7 @@ pub:
branch string [required]
}
// read_repos reads the given JSON file & parses it as a list of Git repos
pub fn read_repos(path string) ?[]GitRepo {
if !os.exists(path) {
mut f := os.create(path) ?
@ -27,6 +28,7 @@ pub fn read_repos(path string) ?[]GitRepo {
return res
}
// write_repos writes a list of repositories back to a given file
pub fn write_repos(path string, repos []GitRepo) ? {
mut f := os.create(path) ?