Setup and run go linters

This commit is contained in:
2024-09-29 22:12:58 +02:00
parent b20c66d257
commit a8da48b557
5 changed files with 57 additions and 16 deletions

View File

@@ -7,8 +7,6 @@ import (
"os"
"path/filepath"
"strings"
git "novamd/internal/gitutils"
)
type FileSystem struct {
@@ -30,7 +28,7 @@ func New(rootDir string, settings *models.Settings) *FileSystem {
}
if settings.Settings.GitEnabled {
fs.GitRepo = git.New(
fs.GitRepo = gitutils.New(
settings.Settings.GitURL,
settings.Settings.GitUser,
settings.Settings.GitToken,