Location:
Problem: The function has a redundant match arm:
The wildcard () already covers Yaml, Toml, and Json since they are not listed in any other arm. The explicit arm at line 107 is dead code — it can never match because catches everything else. This was introduced as part of issue #515 cleanup but the wildcard catch-all was retained, making the explicit arm redundant.
Impact: Dead code. Also confusing: a reader might think the explicit arm is meaningful when it isn't.
Fix: Remove the redundant arm — the already handles these languages.
Location:
Problem: The function has a redundant match arm:
The wildcard () already covers Yaml, Toml, and Json since they are not listed in any other arm. The explicit arm at line 107 is dead code — it can never match because catches everything else. This was introduced as part of issue #515 cleanup but the wildcard catch-all was retained, making the explicit arm redundant.
Impact: Dead code. Also confusing: a reader might think the explicit arm is meaningful when it isn't.
Fix: Remove the redundant arm — the already handles these languages.