Skip to content

Commit

Permalink
fix debugging and segmentation fault on cfg load
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Jul 21, 2024
1 parent 3ab5122 commit 998cc4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"program": "${workspaceFolder}",
"args": [
"analyse",
"--config",
"${workspaceFolder}/assets/configs/all.yaml"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion internal/files/locator.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type FileCollector struct {
}

func NewFileLocator(cfg *config.Config) *FileCollector {
return &FileCollector{}
return &FileCollector{cfg: cfg}
}

func (f FileCollector) Locate() ([]IndividualFile, error) {
Expand Down

0 comments on commit 998cc4e

Please sign in to comment.