You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/io/ole-doc.ts
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ export class Header {
62
62
publicstaticload(buffer: Buffer): Header{
63
63
constheader=newHeader();
64
64
for(leti=0;i<8;i++){
65
+
/* istanbul ignore if */
65
66
if(header.oleId[i]!==buffer[i]){
66
67
thrownewError(`Doesn't look like a valid compound document (wrong ID, 0x${header.oleId[i].toString(16)} must be equal to 0x${buffer[i].toString(16)}).`);
67
68
}
@@ -238,6 +239,7 @@ export class Storage {
238
239
}
239
240
240
241
publicstorage(storageName: string): Storage{
242
+
/* istanbul ignore if */
241
243
if(!this.dirEntry.storages[storageName]){
242
244
thrownewError(`No such storage "${storageName}".`);
0 commit comments