Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6174ff2 authored by theronakpatel's avatar theronakpatel
Browse files

removed redundant

parent cc954aa1
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -123,12 +123,6 @@ class SyncMissingUsersToCommon extends Command {
		$this->userManager->callForAllUsers(function (IUser $user) use ($ipAddress, $isDryRun, $output, &$stats) {
			$username = $user->getUID();

			// Strip legacy domain from username before checking in common DB
			$usernameWithoutDomain = $this->userService->stripLegacyDomainFromUsername($username);
			if ($this->userService->isUsernameTaken($usernameWithoutDomain)) {
				return; // Skip if already exists
			}

			$this->processSingleUser($username, $ipAddress, $isDryRun, $output, $stats);
			if ($stats['processed'] % 100 === 0) {
				$output->writeln(sprintf('<info>Progress: %d processed, %d success, %d errors</info>',