mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Enable no-case-declarations lint
This commit is contained in:
		@@ -7,7 +7,7 @@ const parse = async (cardUrl, format) => {
 | 
			
		||||
    let fileFormat = format === undefined ? 'png' : format;
 | 
			
		||||
 | 
			
		||||
    switch (fileFormat) {
 | 
			
		||||
        case 'png':
 | 
			
		||||
        case 'png': {
 | 
			
		||||
            const buffer = fs.readFileSync(cardUrl);
 | 
			
		||||
            const chunks = extract(buffer);
 | 
			
		||||
 | 
			
		||||
@@ -23,6 +23,7 @@ const parse = async (cardUrl, format) => {
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return Buffer.from(textChunks[0].text, 'base64').toString('utf8');
 | 
			
		||||
        }
 | 
			
		||||
        default:
 | 
			
		||||
            break;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user