Skip to content

Commit

Permalink
fix: flow suppression codes
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Feb 4, 2022
1 parent f125a82 commit 9c15b08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions packages/custom-objects-importer/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ export default class CustomObjectsImporter {
)
const {
body: { results: existingObjects },
// skip below because of flow issue with async/await
// todo: remove `FlowFixMe` when [this](https://github.com/facebook/flow/issues/5294) issue is fixed
// $FlowFixMe
// TODO: remove `FlowFixMe` when [this](https://github.com/facebook/flow/issues/5294) issue is fixed
// $FlowFixMe[incompatible-call]: skip below because of flow issue with async/await
} = await this.client.execute(existingObjectsRequest)

const requestsList = batches.map(
Expand Down
2 changes: 1 addition & 1 deletion packages/product-json-to-csv/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export default class ProductJsonToCsv {
.then((resolvedCategory: Object): Promise<Category> =>
getParent(resolvedCategory[0])
)
// $FlowFixMe: incompatible returns
// $FlowFixMe[incompatible-return]
.then((parent: Object): Promise<Category> => ({ ...cat, parent }))
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-auth/src/tokenProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class TokenProvider {
if (this.tokenInfo && !TokenProvider._isTokenExpired(this.tokenInfo))
return Promise.resolve(this.tokenInfo)

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

Expand Down

0 comments on commit 9c15b08

Please sign in to comment.