Commit 4b3bb0d
committed
refactor: Use threshold variable consistently
The `config.Diff.Threshold` variable was being used directly in log messages and conditional statements. This commit introduces a new variable `threshold` to store the value of `config.Diff.Threshold` and uses it consistently throughout the `rootCmd` function. This improves code readability and maintainability by reducing redundant access to the configuration value.
---
{"auto-commit-msg":{"language":"rust","version":"0.4.0-dev","model":"gemini-2.5-flash-lite","response_time":1.08,"execution_time":1.1}}1 parent ebbd68c commit 4b3bb0d
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments