File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,10 @@ func profileRemove(ctx *cli.Context) error {
199199 return fmt .Errorf ("name argument missing" )
200200 }
201201
202+ if len (f .Profiles ) == 0 {
203+ return fmt .Errorf ("there are no existing profiles" )
204+ }
205+
202206 // Create a copy of all profiles but don't include the one to delete.
203207 newProfiles := make ([]* profileEntry , 0 , len (f .Profiles )- 1 )
204208 for _ , p := range f .Profiles {
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ minimum version needed to build the project.
5757* [ Fix] ( https://github.com/lightningnetwork/lnd/pull/6858 ) command line argument
5858 parsing for ` lncli sendpayment ` .
5959
60+ * [ Fix] ( https://github.com/lightningnetwork/lnd/pull/6875 ) mapslice cap out of
61+ range error that occurs if the number of profiles is zero.
62+
6063## Code Health
6164
6265* [ test: use ` T.TempDir ` to create temporary test
You can’t perform that action at this time.
0 commit comments