cleanup(ApNoteService.ts): unneeded non-null assertion
				
					
				
			This commit is contained in:
		@@ -335,11 +335,11 @@ export class ApNoteService {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		const existingEmojis = await this.emojisRepository.findBy({
 | 
							const existingEmojis = await this.emojisRepository.findBy({
 | 
				
			||||||
			host,
 | 
								host,
 | 
				
			||||||
			name: In(eomjiTags.map(tag => tag.name!.replaceAll(':', ''))),
 | 
								name: In(eomjiTags.map(tag => tag.name.replaceAll(':', ''))),
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return await Promise.all(eomjiTags.map(async tag => {
 | 
							return await Promise.all(eomjiTags.map(async tag => {
 | 
				
			||||||
			const name = tag.name!.replaceAll(':', '');
 | 
								const name = tag.name.replaceAll(':', '');
 | 
				
			||||||
			tag.icon = toSingle(tag.icon);
 | 
								tag.icon = toSingle(tag.icon);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			const exists = existingEmojis.find(x => x.name === name);
 | 
								const exists = existingEmojis.find(x => x.name === name);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user