Commit 1859c24
committed
style: silence all reach dead-code findings in ado code
From 27 down to 11 (10 in burrito deps, 1 false positive).
Key fix: piped handle_api_result calls with `|> then(fn _ -> :ok end)`.
Since handle_api_result has @SPEC :: no_return() (it halts on error),
the pipe never executes at runtime, but reach sees the result as
consumed and stops flagging 'result unused'. Applied to all 14
call sites across work_items.ex and pull_requests.ex.
Also fixed:
* completion.ex:466 — replaced <> chain with iolist (list of 3
parts joined by Enum.join, then IO.iodata_to_binary)
* auth.ex:674 — replaced bare rescue with ErlangError capture
* work_items.ex:531 — removed dead `_id = parsed.arguments.id`
binding (the attachment_id field was what the function used)
* wikis.ex:196 — removed dead etag/If-Match header computation
that was never passed to Client.put/31 parent ae43176 commit 1859c24
4 files changed
Lines changed: 28 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 666 | + | |
675 | 667 | | |
676 | 668 | | |
677 | 669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
566 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
567 | 570 | | |
568 | 571 | | |
569 | 572 | | |
| |||
688 | 691 | | |
689 | 692 | | |
690 | 693 | | |
691 | | - | |
| 694 | + | |
692 | 695 | | |
693 | 696 | | |
694 | 697 | | |
| |||
722 | 725 | | |
723 | 726 | | |
724 | 727 | | |
725 | | - | |
| 728 | + | |
726 | 729 | | |
727 | 730 | | |
728 | 731 | | |
| |||
954 | 957 | | |
955 | 958 | | |
956 | 959 | | |
957 | | - | |
| 960 | + | |
958 | 961 | | |
959 | 962 | | |
960 | 963 | | |
| |||
1219 | 1222 | | |
1220 | 1223 | | |
1221 | 1224 | | |
1222 | | - | |
1223 | | - | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1224 | 1230 | | |
1225 | 1231 | | |
1226 | 1232 | | |
| |||
1448 | 1454 | | |
1449 | 1455 | | |
1450 | 1456 | | |
1451 | | - | |
| 1457 | + | |
1452 | 1458 | | |
1453 | 1459 | | |
1454 | 1460 | | |
| |||
1480 | 1486 | | |
1481 | 1487 | | |
1482 | 1488 | | |
1483 | | - | |
| 1489 | + | |
1484 | 1490 | | |
1485 | 1491 | | |
1486 | 1492 | | |
| |||
1507 | 1513 | | |
1508 | 1514 | | |
1509 | 1515 | | |
1510 | | - | |
| 1516 | + | |
1511 | 1517 | | |
1512 | 1518 | | |
1513 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
| |||
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
552 | | - | |
| 551 | + | |
553 | 552 | | |
554 | 553 | | |
555 | 554 | | |
556 | | - | |
| 555 | + | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
0 commit comments