Commit dda2762
Address review findings on component.rb
Six small changes flagged in review on the Component class:
- build: `unless environment_supported?(symdb_logger) ... return nil end`
collapsed to guard-clause `return nil unless environment_supported?(...)`,
with a note that the helper logs the specific reason internally.
- build: compound `unless settings.remote&.enabled || ... force_upload`
flipped to `if !A && !B` (DeMorgan) — easier to read.
- shutdown!: removed standalone `# @api private` marker before `private`
keyword (redundant; the keyword already enforces visibility).
- scheduler_loop: added a comment explaining what `should_fire = true`
means (debounce deadline elapsed; extract_and_upload runs once after
the mutex is released).
- scheduler_loop: removed the steep:ignore:start/:end block around the
mutex section. NOTE: removal is unverified locally because the libdatadog
version mismatch blocks Steep from running here; CI will surface a
regression if removal isn't safe.
- extract_and_upload: moved `extraction_duration` and `targetable_count`
calculations inside the `@logger.debug` block so the work is skipped
when debug logging is off (the latter iterates the scope tree).
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4473fe6 commit dda2762
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
| 98 | + | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | | - | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
| 292 | + | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
| |||
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
320 | | - | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
| |||
357 | 355 | | |
358 | 356 | | |
359 | 357 | | |
360 | | - | |
361 | | - | |
362 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
0 commit comments