Require curly braces around loop and conditonal bodies

This commit is contained in:
Steve Gravrock
2024-09-02 11:30:36 -07:00
parent f602c4911c
commit d0fe5c4712
8 changed files with 32 additions and 10 deletions

View File

@@ -44,7 +44,9 @@ getJasmineRequireObj().clearStack = function(j$) {
function getUnclampedSetTimeout(global) {
const { setTimeout } = global;
if (j$.util.isUndefined(global.MessageChannel)) return setTimeout;
if (j$.util.isUndefined(global.MessageChannel)) {
return setTimeout;
}
const postMessage = getPostMessage(global);
return function unclampedSetTimeout(fn) {