You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(deploy): improve types to avoid extraneous runtime check (#7220)
* refactor: improve types to avoid extraneous runtime check
This code is messy, but by improving the typess and avoiding some reassignments we can let
TS understand it better and avoid an extraneous runtime check.
* refactor: use switch-case in deploy init choice
"Unable to determine which site to deploy to. Make sure you've run 'netlify link' or that you're specifying your desired site using the '--site' option.",
851
-
)
852
-
}
853
-
854
849
// This is the best I could come up with to make TS happy with the complexities above.
0 commit comments