mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-07 19:30:46 +02:00
lnd: partially fix golint warnings
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
92dec2a902
commit
fd97a4bd19
@@ -126,7 +126,7 @@ func (c *UpdateAddHTLC) Validate() error {
|
||||
if c.Amount < 0 {
|
||||
// While fees can be negative, it's too confusing to allow
|
||||
// negative payments. Maybe for some wallets, but not this one!
|
||||
return fmt.Errorf("Amount paid cannot be negative.")
|
||||
return fmt.Errorf("amount paid cannot be negative")
|
||||
}
|
||||
// We're good!
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user