MCPcopy Index your code
hub / github.com/buildbot/buildbot / applyLimit

Method applyLimit

www/data-module/src/data/DataQuery.ts:143–150  ·  view source on GitHub ↗
(array: any[])

Source from the content-addressed store, hash-verified

141 }
142
143 applyLimit(array: any[]) {
144 if (this.limit === null) {
145 return;
146 }
147 while (array.length > this.limit) {
148 array.pop();
149 }
150 }
151}

Callers 2

limitMethod · 0.95
recomputeQueryMethod · 0.80

Calls 1

popMethod · 0.80

Tested by 1

limitMethod · 0.76