-
Notifications
You must be signed in to change notification settings - Fork 918
Commit 3a2b347
Refactor environment variable handling in configuration files
- Introduced a new helper function `_get_int_env_var` to retrieve environment variables as integers with default fallback and error handling.
- Updated `config.py` and `server_config.py` to use the new helper function for better clarity and maintainability.
- Simplified `_get_env_var` in `config_utils.py` to focus solely on retrieving string values without type casting.1 parent b11aafa commit 3a2b347
File tree
3 files changed
+30
-24
lines changed- src
- gitingest
- utils
- server
3 files changed
+30
-24
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
12 | 15 |
| |
13 | - | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
14 | 22 |
| |
15 | 23 |
| |
16 | 24 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
7 | 6 |
| |
8 | 7 |
| |
9 | - | ||
10 | - | ||
8 | + | ||
9 | + | ||
11 | 10 |
| |
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
16 | - | ||
15 | + | ||
17 | 16 |
| |
18 | - | ||
19 | - | ||
20 | 17 |
| |
21 | 18 |
| |
22 | 19 |
| |
23 | - | ||
24 | - | ||
20 | + | ||
21 | + | ||
25 | 22 |
| |
26 | 23 |
| |
27 | 24 |
| |
| |||
30 | 27 |
| |
31 | 28 |
| |
32 | 29 |
| |
33 | - | ||
34 | - | ||
35 | - | ||
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | 30 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | - | ||
10 | - | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
11 | 19 |
| |
12 | 20 |
| |
13 | - | ||
14 | - | ||
21 | + | ||
22 | + | ||
15 | 23 |
| |
16 | 24 |
| |
17 | 25 |
| |
|
0 commit comments