mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
scan: fix dropped errors (#424)
This commit is contained in:
1 parent
ef4655fcf1
commit
b5ca2ba614
3 files changed
+14
No files matched your search
@@ -175,6 +175,9 @@ func (repo *Repo) scanEmpty() error {
|
||||
}
|
||||
|
||||
status, err := wt.Status()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for fn := range status {
|
||||
workTreeBuf := bytes.NewBuffer(nil)
|
||||
workTreeFile, err := wt.Filesystem.Open(fn)
|
||||
|
||||
Reference in new issue
Block a user