remove unneeded len assign
why you assigning lent = ... to out when on next line you are slicing it and overwrite the out whit the sliced one
This commit is contained in:
		
							parent
							
								
									2a654168f1
								
							
						
					
					
						commit
						f8e7b6613f
					
				@ -386,7 +386,6 @@
 | 
			
		||||
      default: throw new Error("Unsupported magic: " + cp + " " + magic[cp]);
 | 
			
		||||
    }
 | 
			
		||||
    else throw new Error("Unrecognized CP: " + cp);
 | 
			
		||||
    out.length = j;
 | 
			
		||||
    out = out.slice(0,j);
 | 
			
		||||
    if(typeof Buffer === 'undefined') return (ofmt == 'str') ? out.map(sfcc).join("") : out;
 | 
			
		||||
    if(ofmt === undefined || ofmt === 'buf') return out;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user