mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
style: format remaining owned runtime modules
This commit is contained in:
1 parent
ae99843c14
commit
2aca7aecbb
94 files changed
+8865
-3151
No files matched your search
@@ -23,13 +23,16 @@ export function keylessHudSummaryResponse(apiKey) {
|
||||
|
||||
/** Return true only for the deliberate, successful no-key capability response. */
|
||||
export function isHudSummaryUnconfigured(status, data) {
|
||||
const keys = data !== null && typeof data === 'object' && !Array.isArray(data)
|
||||
? Object.keys(data)
|
||||
: [];
|
||||
return keys.length === 4
|
||||
&& status === 200
|
||||
&& data?.configured === false
|
||||
&& data?.code === HUD_SUMMARY_UNCONFIGURED_CODE
|
||||
&& data?.error === null
|
||||
&& data?.summary === null;
|
||||
const keys =
|
||||
data !== null && typeof data === 'object' && !Array.isArray(data)
|
||||
? Object.keys(data)
|
||||
: [];
|
||||
return (
|
||||
keys.length === 4 &&
|
||||
status === 200 &&
|
||||
data?.configured === false &&
|
||||
data?.code === HUD_SUMMARY_UNCONFIGURED_CODE &&
|
||||
data?.error === null &&
|
||||
data?.summary === null
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user