Skip to content

Commit a413f79

Browse files
committed
Lint/errors
1 parent 7b68b57 commit a413f79

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

includes/ExternalRedirectInterceptor.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,13 @@ public function wp_redirect( $location ): string {
3030
$runtime_data = Data::runtime();
3131
$brand_plugin_url = '';
3232

33-
/*
34-
* Get the brand plugin page URL from the runtime data.
35-
*/
36-
// Check if the current brand is set and is an array.
33+
// Get the brand plugin page URL from the runtime data.
3734
if (
3835
isset( $runtime_data['currentBrand'], $runtime_data['currentBrand']['pluginDashboardPage'] ) &&
3936
is_string( $runtime_data['currentBrand']['pluginDashboardPage'] )
40-
) {
37+
) {
4138
// Set the brand plugin page URL.
4239
$brand_plugin_url = $runtime_data['currentBrand']['pluginDashboardPage'];
43-
}
4440
}
4541

4642
// Redirect if the brand plugin page URL is empty.

0 commit comments

Comments
 (0)