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)
Tue, May 7, 12:55 AM
Unknown Object (File)
Sat, May 4, 10:01 PM
Unknown Object (File)
Fri, May 3, 4:47 PM
Unknown Object (File)
Thu, May 2, 3:07 PM
Unknown Object (File)
Wed, May 1, 1:42 PM
Unknown Object (File)
Mon, Apr 29, 1:20 PM
Unknown Object (File)
Sun, Apr 28, 12:20 PM
Unknown Object (File)
Sat, Apr 27, 8:43 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.