1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Make Aggregator ignore set lockfile if NoLock option is set to true

This commit is contained in:
JanHoefelmeyer 2023-03-20 08:27:07 +01:00
parent a28ebe39cb
commit dd0be44e81

View file

@ -267,8 +267,10 @@ func (c *config) setDefaults() {
c.Domain = defaultDomain c.Domain = defaultDomain
} }
if !c.NoLock && c.LockFile == nil { if c.NoLock {
c.LockFile = &defaultLockFile c.LockFile = nil
} else if c.LockFile == nil {
c.LockFile = &defautLockFile
} }
if c.Workers <= 0 { if c.Workers <= 0 {