MCPcopy Create free account
hub / github.com/EndBug/add-and-commit / log

Function log

src/util.ts:33–36  ·  view source on GitHub ↗
(err: any, data?: any)

Source from the content-addressed store, hash-verified

31
32// eslint-disable-next-line @typescript-eslint/no-explicit-any
33export function log(err: any, data?: any) {
34 if (data) console.log(data);
35 if (err) core.error(err);
36}
37
38/**
39 * Matches the given string to an array of arguments.

Callers 3

main.tsFile · 0.90
addFunction · 0.90
removeFunction · 0.90

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected