Page MenuHomePhabricator

[Flow202][keyserver][skip-ci] [22/x] Address type errors with getWNSToken
ClosedPublic

Authored by ashoat on Nov 13 2023, 3:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 6:09 AM
Unknown Object (File)
Mon, Dec 16, 6:09 AM
Unknown Object (File)
Mon, Dec 16, 6:08 AM
Unknown Object (File)
Mon, Dec 16, 6:00 AM
Unknown Object (File)
Sat, Dec 14, 5:14 AM
Unknown Object (File)
Thu, Nov 28, 3:10 PM
Unknown Object (File)
Tue, Nov 26, 10:36 AM
Unknown Object (File)
Tue, Nov 26, 7:54 AM
Subscribers

Details

Summary

The new version of Flow seems to be worried that the value of wnsAccessToken will change between when it is being checked and when it's used. This diff assigns the value to a local variable before checking it, which Flow seems to prefer.

NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.

Depends on D9870

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 13 2023, 3:42 PM
Harbormaster failed remote builds in B24088: Diff 33187!
This revision is now accepted and ready to land.Nov 15 2023, 1:24 AM
ashoat retitled this revision from [Flow202][keyserver] [22/x] Address type errors with getWNSToken to [Flow202][keyserver][skip-ci] [22/x] Address type errors with getWNSToken.Nov 19 2023, 5:09 PM
This revision was landed with ongoing or failed builds.Nov 27 2023, 3:27 PM
This revision was automatically updated to reflect the committed changes.