mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
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;
|
||||
id ||= "discourse.(unknown)";
|
||||
|
||||
this.incrementDeprecation(id);
|
||||
const matchingConfig = this.#configById.get(id);
|
||||
|
||||
if (matchingConfig !== "silence") {
|
||||
this.incrementDeprecation(id);
|
||||
}
|
||||
}
|
||||
|
||||
incrementDeprecation(id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user