cmd+docs: fix cap out of range error in profile command
If `lncli profile remove` is called when there are no existing profiles, it will cause a "cap out of range" panic. So in this commit, a length check is added to avoid this.
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -57,6 +57,9 @@ minimum version needed to build the project.
|
||||
* [Fix](https://github.com/lightningnetwork/lnd/pull/6858) command line argument
|
||||
parsing for `lncli sendpayment`.
|
||||
|
||||
* [Fix](https://github.com/lightningnetwork/lnd/pull/6875) mapslice cap out of
|
||||
range error that occurs if the number of profiles is zero.
|
||||
|
||||
## Code Health
|
||||
|
||||
* [test: use `T.TempDir` to create temporary test
|
||||
|
||||
Reference in new issue
Block a user