Page MenuHomePhorge

Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call
ClosedPublic

Authored by aklapper on Jul 25 2024, 13:50.
Tags
None
Referenced Files
F3342226: D25745.1743662756.diff
Wed, Apr 2, 06:45
F3340974: D25745.1743646133.diff
Wed, Apr 2, 02:08
F3335359: D25745.1743561978.diff
Tue, Apr 1, 02:46
F3334912: D25745.1743555415.diff
Tue, Apr 1, 00:56
F3331858: D25745.1743513884.diff
Mon, Mar 31, 13:24
F3329516: D25745.1743476372.diff
Mon, Mar 31, 02:59
F3313330: D25745.1743216993.diff
Fri, Mar 28, 02:56
F3311800: D25745.1743208042.diff
Fri, Mar 28, 00:27

Details

Summary

Method PhabricatorConfigConsoleController::newLibraryVersionTable() invoked with 1 parameter, 0 required.
Thus remove the parameter from its only call across the codebase.

Test Plan

Read the code.

Diff Detail

Repository
rP Phorge
Branch
configLibVersionTable
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1455
Build 1455: arc lint + arc unit

Event Timeline

Thanks.

I cannot imagine any situation where the incoming viewer from handleRequest(AphrontRequest $request) could be different from the implicit viewer from AphrontController#getViewer() ($this->getRequest()->getViewer()).

Also, practically, the objects are the same:

https://we.phorge.it/source/phorge/browse/master/src/aphront/configuration/AphrontApplicationConfiguration.php$264-284


So I wonder why handleRequest(AphrontRequest $request) has such parameter. Maybe it should have no parameters and just rely on $this->getRequest(). But this is an unrelated story.

Safe change. Thanks

This revision is now accepted and ready to land.Jul 26 2024, 07:08