Skip to content

Commit a1422ff

Browse files
committed
Fix: put guard call in wrong place
1 parent 9eae4da commit a1422ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const operator = {
1717
decache(relativePath);
1818
if (!data) {
1919
throw new Error(`No data in '${relativePath}'`)
20-
this.guardExportType(data, relativePath);
2120
}
21+
this.guardExportType(data, relativePath);
2222
if (property) {
2323
const propVal = squba(data, property);
2424
this.guardExportType(propVal, relativePath);

0 commit comments

Comments
 (0)