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:
parent
a28ebe39cb
commit
dd0be44e81
1 changed files with 4 additions and 2 deletions
|
|
@ -267,8 +267,10 @@ func (c *config) setDefaults() {
|
|||
c.Domain = defaultDomain
|
||||
}
|
||||
|
||||
if !c.NoLock && c.LockFile == nil {
|
||||
c.LockFile = &defaultLockFile
|
||||
if c.NoLock {
|
||||
c.LockFile = nil
|
||||
} else if c.LockFile == nil {
|
||||
c.LockFile = &defautLockFile
|
||||
}
|
||||
|
||||
if c.Workers <= 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue