Commit ef07d93
committed
fix: avoid extra async config lookup when repository is provided
Combine the starter and repositoryName resolution into a single
getSliceMachineConfig() call, and only attempt it when repositoryName
is not already provided by the caller. This avoids an additional async
file traversal in the init error path, which was causing timing-sensitive
tests to fail.
Made-with: Cursor1 parent 8aebe4f commit ef07d93
1 file changed
Lines changed: 6 additions & 11 deletions
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
| |||
0 commit comments