MCPcopy
hub / github.com/ThatGuySam/doesitarm / getStatusName

Function getStatusName

helpers/statuses.js:60–66  ·  view source on GitHub ↗
( status )

Source from the content-addressed store, hash-verified

58
59
60export function getStatusName ( status ) {
61 for (const key in statusesByIcon) {
62 if (status.trim().startsWith( key )) return statusesByIcon[key]
63 }
64
65 throw new Error('Non status matched')
66}
67
68export function getStatusOfScan ( appScan, includeVersion = true ) {
69 const statusName = getStatusName( appScan['Result'] )

Callers 3

build-app-list.jsFile · 0.90
deviceSupportsAppFunction · 0.90
getStatusOfScanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected