From 3d44277a209ff1d1526f6db1f1198b0c7dcaf907 Mon Sep 17 00:00:00 2001 From: adragusin Date: Tue, 2 Jun 2020 09:19:14 +0300 Subject: [PATCH] Removed unwanted check --- migrator/user.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/migrator/user.go b/migrator/user.go index 5909a7520..4197adb8d 100644 --- a/migrator/user.go +++ b/migrator/user.go @@ -101,10 +101,6 @@ func (m *Migrator) removeV1UserProfile() (err error) { if user == nil || user.Masked || m.dryRun { continue } - attr := userProfile2attributeProfile(user) - if len(attr.Attributes) == 0 { - continue - } if err := m.dmIN.remV1User(user.GetId()); err != nil { return err }