An agile development team has adopted the practice of collective code ownership. A junior developer discovers a minor bug in a module that was originally written by a senior developer who is currently on vacation. What is the most appropriate action for the junior developer to take?
-
A
Document the bug and wait for the senior developer to return to fix it.
-
B
Attempt to fix the bug, write or update relevant tests, and submit the change through the team's standard review process.
-
C
Ask another senior developer to fix the bug to avoid responsibility for someone else's code.
-
D
Fix the bug directly in the main branch without tests to ensure a quick resolution.