Skip to content

Commit 979266a

Browse files
committed
linter fixes
1 parent 2c1441a commit 979266a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/model/build-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function reAddAvailability (model: model.Model): model.Model {
6262
for (const [api, spec] of jsonSpec.entries()) {
6363
for (const endpoint of model.endpoints) {
6464
if (endpoint.name === api) {
65-
if ((spec.stability || spec.visibility) && (endpoint.availability.stack === undefined && endpoint.availability.serverless === undefined)) {
65+
if ((spec.stability != null || spec.visibility != null) && (endpoint.availability.stack === undefined && endpoint.availability.serverless === undefined)) {
6666
endpoint.availability = {
6767
stack: {
6868
stability: spec.stability,
@@ -103,7 +103,7 @@ export function compileEndpoints (): Record<string, model.Endpoint> {
103103
})
104104
}
105105
if (typeof spec.feature_flag === 'string') {
106-
map[api].availability.stack = {featureFlag: spec.feature_flag}
106+
map[api].availability.stack = { featureFlag: spec.feature_flag }
107107
}
108108
}
109109
return map

0 commit comments

Comments
 (0)