Commit a39b9f0
committed
fix(config): 修复更新配置检测中的空指针问题
- 添加了对 Config.Update 是否为 nil 的检查和初始化
- 设置默认镜像源为 "ghproxy" 当未指定时
- 确保 custom 镜像源时 customURL 不为空校验逻辑完整1 parent e606948 commit a39b9f0
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
0 commit comments