Skip to content

Commit 039e173

Browse files
committed
Remove unnecessary blank line and add early return in sync method to improve code clarity
1 parent b791d6d commit 039e173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listener/SyncProfileEventListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public function syncEvent(SyncProfileEvent $event)
6262
$this->log->debug("Synced $event->email");
6363
}
6464

65-
6665
private function syncNickname(User $user, $attributes)
6766
{
6867
// If nickname present and nickname sync enabled
@@ -186,6 +185,7 @@ private function syncFofMasquerade(User $user, $attributes){
186185
$post_req = $post_req->withAttribute('bypassCsrfToken', true)->withAttribute('actor', $user);
187186
$controller->handle($post_req);
188187
} catch (\Exception $e) {
188+
return;
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)