DEV: Do not include silenced Discourse deprecations in counter (#21336)
Silenced Ember deprecations were already being excluded from the test output. This applies the same logic to Discourse deprecations.
This commit is contained in:
parent
b3e063bc63
commit
19540dfa0e
|
@ -34,7 +34,11 @@ export default class DeprecationCounter {
|
||||||
let { id } = options;
|
let { id } = options;
|
||||||
id ||= "discourse.(unknown)";
|
id ||= "discourse.(unknown)";
|
||||||
|
|
||||||
this.incrementDeprecation(id);
|
const matchingConfig = this.#configById.get(id);
|
||||||
|
|
||||||
|
if (matchingConfig !== "silence") {
|
||||||
|
this.incrementDeprecation(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
incrementDeprecation(id) {
|
incrementDeprecation(id) {
|
||||||
|
|
Loading…
Reference in New Issue