Skip to content

Commit 5f3e7bf

Browse files
committed
Use early return
1 parent 3f052b6 commit 5f3e7bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/URLHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static function getCurrent(): string {
7979
}
8080

8181
if ( isset( $_SERVER['REQUEST_URI'] ) ) {
82-
$url = $url . sanitize_url( wp_unslash( $_SERVER['REQUEST_URI'] ) );
82+
return $url . sanitize_url( wp_unslash( $_SERVER['REQUEST_URI'] ) );
8383
}
8484

8585
return $url;

0 commit comments

Comments
 (0)