File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
lib/workers/repository/process/lookup Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ export async function lookupUpdates(
59
59
config . versioning ??= getDefaultVersioning ( config . datasource ) ;
60
60
61
61
const versioningApi = allVersioning . get ( config . versioning ) ;
62
- const unconstrainedValue =
63
- ! ! config . lockedVersion && is . undefined ( config . currentValue ) ;
64
62
65
63
let dependency : ReleaseResult | null = null ;
66
64
const res : UpdateResult = {
@@ -124,10 +122,14 @@ export async function lookupUpdates(
124
122
) ;
125
123
}
126
124
}
125
+
127
126
const isValid =
128
127
is . string ( compareValue ) && versioningApi . isValid ( compareValue ) ;
129
128
130
- if ( unconstrainedValue || isValid ) {
129
+ const unconstrainedValue =
130
+ ! ! config . lockedVersion && is . undefined ( config . currentValue ) ;
131
+
132
+ if ( isValid || unconstrainedValue ) {
131
133
if (
132
134
! config . updatePinnedDependencies &&
133
135
// TODO #22198
@@ -752,7 +754,6 @@ export async function lookupUpdates(
752
754
rollbackPrs : config . rollbackPrs ,
753
755
isVulnerabilityAlert : config . isVulnerabilityAlert ,
754
756
updatePinnedDependencies : config . updatePinnedDependencies ,
755
- unconstrainedValue,
756
757
err,
757
758
} ,
758
759
'lookupUpdates error' ,
You can’t perform that action at this time.
0 commit comments