Commit a3c8569
Remove redundant os.Stat call, use os.ReadDir error directly
ReadDir already returns os.ErrNotExist when the directory does not
exist, so no need to run Stat before ReadDir.
Signed-off-by: chijiajian <33536362+chijiajian@users.noreply.github.com>1 parent 343ab71 commit a3c8569
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 164 | | |
170 | 165 | | |
171 | 166 | | |
| |||
0 commit comments