mirror of
https://github.com/samuelncui/acp.git
synced 2026-09-20 06:24:15 +00:00
fix: harden signature cache publication
This commit is contained in:
@@ -66,8 +66,12 @@ func (o *option) check() error {
|
||||
}
|
||||
}
|
||||
|
||||
o.fromDevice.check()
|
||||
o.toDevice.check()
|
||||
if err := o.fromDevice.check(); err != nil {
|
||||
return fmt.Errorf("check source device failed, %w", err)
|
||||
}
|
||||
if err := o.toDevice.check(); err != nil {
|
||||
return fmt.Errorf("check target device failed, %w", err)
|
||||
}
|
||||
if o.withSignatureCache {
|
||||
o.withHash = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user