Skip to content

Commit

Permalink
refactor(global): remove IIFE
Browse files Browse the repository at this point in the history
If we're using let and const, there's no need to wrap everything in a
function. Instead, we can use curly braces alone to create a scope
  • Loading branch information
Minion3665 committed Sep 11, 2024
1 parent 3f3ba63 commit 64043ac
Show file tree
Hide file tree
Showing 2 changed files with 305 additions and 305 deletions.
82 changes: 41 additions & 41 deletions browser/.betterer.results
Original file line number Diff line number Diff line change
Expand Up @@ -751,48 +751,48 @@ exports[`avoid non-null assertions`] = {
[109, 3, 13, "Forbidden non-null assertion.", "2877650227"],
[110, 3, 13, "Forbidden non-null assertion.", "2877650227"]
],
"src/slideshow/LayerDrawing.ts:3476689387": [
"src/slideshow/LayerDrawing.ts:3613424263": [
[138, 29, 15, "Forbidden non-null assertion.", "1854645889"],
[235, 35, 10, "Forbidden non-null assertion.", "2788468833"],
[239, 36, 10, "Forbidden non-null assertion.", "2788468833"],
[252, 30, 10, "Forbidden non-null assertion.", "2788468833"],
[255, 29, 10, "Forbidden non-null assertion.", "2788468833"],
[259, 26, 10, "Forbidden non-null assertion.", "2788468833"],
[264, 49, 10, "Forbidden non-null assertion.", "2788468833"],
[265, 49, 10, "Forbidden non-null assertion.", "2788468833"],
[267, 25, 10, "Forbidden non-null assertion.", "2788468833"],
[334, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[341, 20, 10, "Forbidden non-null assertion.", "2787048381"],
[343, 6, 10, "Forbidden non-null assertion.", "2787048381"],
[354, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[359, 4, 10, "Forbidden non-null assertion.", "2787048381"],
[363, 44, 10, "Forbidden non-null assertion.", "2787048381"],
[364, 6, 7, "Forbidden non-null assertion.", "4232856564"],
[378, 2, 7, "Forbidden non-null assertion.", "4232856564"],
[388, 6, 7, "Forbidden non-null assertion.", "4232856564"],
[407, 2, 7, "Forbidden non-null assertion.", "4232856564"],
[413, 2, 22, "Forbidden non-null assertion.", "4088713040"],
[420, 2, 22, "Forbidden non-null assertion.", "4088713040"],
[421, 2, 22, "Forbidden non-null assertion.", "4088713040"],
[424, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[426, 6, 10, "Forbidden non-null assertion.", "2787048381"],
[427, 3, 22, "Forbidden non-null assertion.", "4088713040"],
[427, 44, 10, "Forbidden non-null assertion.", "2787048381"],
[429, 38, 22, "Forbidden non-null assertion.", "4088713040"],
[431, 3, 22, "Forbidden non-null assertion.", "4088713040"],
[440, 19, 10, "Forbidden non-null assertion.", "2787048381"],
[442, 5, 10, "Forbidden non-null assertion.", "2787048381"],
[460, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[462, 44, 10, "Forbidden non-null assertion.", "2787048381"],
[466, 5, 10, "Forbidden non-null assertion.", "2787048381"],
[494, 21, 36, "Forbidden non-null assertion.", "3679809276"],
[501, 6, 10, "Forbidden non-null assertion.", "2787048381"],
[539, 3, 22, "Forbidden non-null assertion.", "4088713040"],
[552, 41, 24, "Forbidden non-null assertion.", "4226752697"],
[568, 27, 24, "Forbidden non-null assertion.", "4226752697"],
[570, 23, 24, "Forbidden non-null assertion.", "4226752697"]
],
"src/slideshow/LayersCompositor.ts:1476259771": [
[241, 35, 10, "Forbidden non-null assertion.", "2788468833"],
[245, 36, 10, "Forbidden non-null assertion.", "2788468833"],
[258, 30, 10, "Forbidden non-null assertion.", "2788468833"],
[261, 29, 10, "Forbidden non-null assertion.", "2788468833"],
[265, 26, 10, "Forbidden non-null assertion.", "2788468833"],
[270, 49, 10, "Forbidden non-null assertion.", "2788468833"],
[271, 49, 10, "Forbidden non-null assertion.", "2788468833"],
[273, 25, 10, "Forbidden non-null assertion.", "2788468833"],
[340, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[347, 20, 10, "Forbidden non-null assertion.", "2787048381"],
[349, 6, 10, "Forbidden non-null assertion.", "2787048381"],
[360, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[365, 4, 10, "Forbidden non-null assertion.", "2787048381"],
[369, 44, 10, "Forbidden non-null assertion.", "2787048381"],
[370, 6, 7, "Forbidden non-null assertion.", "4232856564"],
[384, 2, 7, "Forbidden non-null assertion.", "4232856564"],
[394, 6, 7, "Forbidden non-null assertion.", "4232856564"],
[413, 2, 7, "Forbidden non-null assertion.", "4232856564"],
[419, 2, 22, "Forbidden non-null assertion.", "4088713040"],
[426, 2, 22, "Forbidden non-null assertion.", "4088713040"],
[427, 2, 22, "Forbidden non-null assertion.", "4088713040"],
[430, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[432, 6, 10, "Forbidden non-null assertion.", "2787048381"],
[433, 3, 22, "Forbidden non-null assertion.", "4088713040"],
[433, 44, 10, "Forbidden non-null assertion.", "2787048381"],
[435, 38, 22, "Forbidden non-null assertion.", "4088713040"],
[437, 3, 22, "Forbidden non-null assertion.", "4088713040"],
[446, 19, 10, "Forbidden non-null assertion.", "2787048381"],
[448, 5, 10, "Forbidden non-null assertion.", "2787048381"],
[466, 7, 10, "Forbidden non-null assertion.", "2787048381"],
[468, 44, 10, "Forbidden non-null assertion.", "2787048381"],
[472, 5, 10, "Forbidden non-null assertion.", "2787048381"],
[500, 21, 36, "Forbidden non-null assertion.", "3679809276"],
[507, 6, 10, "Forbidden non-null assertion.", "2787048381"],
[545, 3, 22, "Forbidden non-null assertion.", "4088713040"],
[558, 41, 24, "Forbidden non-null assertion.", "4226752697"],
[574, 27, 24, "Forbidden non-null assertion.", "4226752697"],
[576, 23, 24, "Forbidden non-null assertion.", "4226752697"]
],
"src/slideshow/LayersCompositor.ts:256406292": [
[45, 3, 12, "Forbidden non-null assertion.", "1956306090"]
],
"src/slideshow/PauseTimer.ts:3040139803": [
Expand Down
Loading

0 comments on commit 64043ac

Please sign in to comment.