Commit c7594f7
committed
Fix nil pointer dereference when commit_message is not set
The Update and Delete functions were dereferencing opts.Message without
checking for nil, which could cause a panic when users don't specify a
commit_message in their configuration.
Added nil checks before dereferencing to use default messages when no
custom message is provided.1 parent b31b1d7 commit c7594f7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
0 commit comments