Skip to content

Commit 95e4e5d

Browse files
fix: Remove unecessary logic
1 parent 12dfeb5 commit 95e4e5d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Collection/Collection.service.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,7 @@ export class CollectionService {
542542
collection: CollectionAttributes,
543543
ethAddress: string
544544
): boolean {
545-
if (collection) {
546-
return collection.managers.some((manager) => manager === ethAddress)
547-
}
548-
549-
return false
545+
return collection.managers.some((manager) => manager === ethAddress)
550546
}
551547

552548
public async isOwnedOrManagedBy(

0 commit comments

Comments
 (0)