Skip to content

Commit 9c15b08

Browse files
committed
fix: flow suppression codes
1 parent f125a82 commit 9c15b08

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/custom-objects-importer/src/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,8 @@ export default class CustomObjectsImporter {
123123
)
124124
const {
125125
body: { results: existingObjects },
126-
// skip below because of flow issue with async/await
127-
// todo: remove `FlowFixMe` when [this](https://github.com/facebook/flow/issues/5294) issue is fixed
128-
// $FlowFixMe
126+
// TODO: remove `FlowFixMe` when [this](https://github.com/facebook/flow/issues/5294) issue is fixed
127+
// $FlowFixMe[incompatible-call]: skip below because of flow issue with async/await
129128
} = await this.client.execute(existingObjectsRequest)
130129

131130
const requestsList = batches.map(

packages/product-json-to-csv/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export default class ProductJsonToCsv {
409409
.then((resolvedCategory: Object): Promise<Category> =>
410410
getParent(resolvedCategory[0])
411411
)
412-
// $FlowFixMe: incompatible returns
412+
// $FlowFixMe[incompatible-return]
413413
.then((parent: Object): Promise<Category> => ({ ...cat, parent }))
414414
)
415415
}

packages/sdk-auth/src/tokenProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default class TokenProvider {
145145
if (this.tokenInfo && !TokenProvider._isTokenExpired(this.tokenInfo))
146146
return Promise.resolve(this.tokenInfo)
147147

148-
// $FlowFixMe - _refreshToken method will fetch new tokenInfo if not provided
148+
// $FlowFixMe[incompatible-call]: _refreshToken method will fetch new tokenInfo if not provided
149149
return this._refreshToken(this.tokenInfo)
150150
}
151151

0 commit comments

Comments
 (0)