MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / formal

Function formal

services.ts:3366–3383  ·  view source on GitHub ↗
(arr:string[])

Source from the content-addressed store, hash-verified

3364 dlen:number = del.length,
3365 ilen:number = ins.length;
3366 const formal = function node_apps_readmethod_resolve_stat_resolveItem_callbackDiff_byType_formal(arr:string[]):string {
3367 if (type === "directory") {
3368 if (arr.length === 1) {
3369 return "directory";
3370 }
3371 return "directories";
3372 }
3373 if (type === "file") {
3374 if (arr.length === 1) {
3375 return "file";
3376 }
3377 return "files";
3378 }
3379 if (arr.length === 1) {
3380 return "symbolic link";
3381 }
3382 return "symbolic links";
3383 };
3384 if (type !== "directory") {
3385 if (type === "file") {
3386 options.source = files.source;

Callers 1

byTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected