Skip to content

Commit fbbcf93

Browse files
ruyadornoisaacs
authored andcommittedOct 3, 2019
chore: Removes unnecessary if block
Small refactor on lib/content/read.js that removes an unnecessary if block. PR-URL: #17 Credit: @ruyadorno Close: #17 Reviewed-by: @isaacs
1 parent 79e3f1c commit fbbcf93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎lib/content/read.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ function withContentSriSync (cache, integrity, fn) {
240240
lastErr = err
241241
}
242242
}
243-
if (lastErr) {
244-
throw lastErr
245-
}
243+
throw lastErr
246244
}
247245
}
248246

0 commit comments

Comments
 (0)