Skip to content

Commit b216a31

Browse files
committed
Minor refactor.
1 parent 274f79f commit b216a31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private function send_json_error( $e, $error_message ) {
212212

213213
Messages::set_error( sprintf( $error_message, $message ) );
214214

215-
$caps = $this->store_capabilities();
215+
$caps = $this->update_capabilities();
216216

217217
wp_send_json_error( [ 'capabilities' => $caps ], $code );
218218
}
@@ -224,7 +224,7 @@ private function send_json_error( $e, $error_message ) {
224224
*
225225
* @return false|array
226226
*/
227-
private function store_capabilities( $token = '' ) {
227+
private function update_capabilities( $token = '' ) {
228228
$client_factory = new ClientFactory( $token );
229229
/** @var Client $client */
230230
$client = $client_factory->build();

0 commit comments

Comments
 (0)