MCPcopy Index your code
hub / github.com/nodejs/node / validateEntity

Method validateEntity

deps/npm/lib/commands/trust/gitlab.js:57–61  ·  view source on GitHub ↗
(entity)

Source from the content-addressed store, hash-verified

55 }
56
57 validateEntity (entity) {
58 if (entity.split('/').length < 2) {
59 throw new Error(`${this.constructor.providerEntity} must be specified in the format group/project or group/subgroup/project`)
60 }
61 }
62
63 validateFile (file) {
64 if (file !== path.basename(file)) {

Callers 1

flagsToOptionsMethod · 0.45

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected