Remove redundant variables

This commit is contained in:
KMY 2023-05-27 12:50:42 +09:00
parent a62d454915
commit dee69e4f83
2 changed files with 3 additions and 5 deletions

View file

@ -7,7 +7,6 @@ import { unicodeToUnifiedName } from './unicode_to_unified_name';
const [ shortCodesToEmojiData, skins, categories, short_names ] = emojiCompressed;
const emojis = {};
const shortCodes = {};
// decompress
Object.keys(shortCodesToEmojiData).forEach((shortCode) => {
@ -34,12 +33,10 @@ Object.keys(shortCodesToEmojiData).forEach((shortCode) => {
short_names,
unified,
};
shortCodes[native] = shortCode;
});
export {
emojis,
shortCodes,
skins,
categories,
short_names,