MCPcopy
hub / github.com/jgraph/drawio-desktop / reqStr

Function reqStr

src/main/electron.js:2895–2903  ·  view source on GitHub ↗
(v, name)

Source from the content-addressed store, hash-verified

2893};
2894
2895function reqStr(v, name)
2896{
2897 if (typeof v !== 'string' || !v)
2898 {
2899 throw new Error('bad arg: ' + name);
2900 }
2901
2902 return v;
2903}
2904
2905// Returns true if `realpath` is a draft- or backup-naming variant of any path
2906// in blessedPaths (same directory, basename starts with DRAFT_PREFEX +

Callers 1

electron.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected