Commit 0640b09
committed
lib: refactor policy code for readability
Simplify a few particularly quirky bits of code, and add
whitespace for readability.
PR-URL: #25629
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>1 parent 1905f8e commit 0640b09Copy full SHA for 0640b09
File tree
Expand file treeCollapse file tree
3 files changed
+27
-12
lines changedOpen diff view settings
Filter options
- lib/internal
- policy
- process
Expand file treeCollapse file tree
3 files changed
+27
-12
lines changedOpen diff view settings
Collapse file
lib/internal/policy/manifest.js
Copy file name to clipboardExpand all lines: lib/internal/policy/manifest.js+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
| 25 | + |
25 | 26 | |
26 | 27 | |
27 | 28 | |
| 29 | + |
28 | 30 | |
29 | 31 | |
30 | 32 | |
31 | 33 | |
32 | 34 | |
33 | 35 | |
34 | 36 | |
| 37 | + |
35 | 38 | |
36 | 39 | |
37 | 40 | |
| 41 | + |
38 | 42 | |
39 | 43 | |
40 | 44 | |
| ||
44 | 48 | |
45 | 49 | |
46 | 50 | |
| 51 | + |
47 | 52 | |
48 | 53 | |
49 | 54 | |
| ||
55 | 60 | |
56 | 61 | |
57 | 62 | |
| 63 | + |
58 | 64 | |
59 | 65 | |
| 66 | + |
60 | 67 | |
61 | 68 | |
62 | 69 | |
| ||
65 | 72 | |
66 | 73 | |
67 | 74 | |
| 75 | + |
68 | 76 | |
69 | 77 | |
70 | 78 | |
71 | 79 | |
| 80 | + |
72 | 81 | |
73 | 82 | |
74 | 83 | |
| ||
85 | 94 | |
86 | 95 | |
87 | 96 | |
| 97 | + |
88 | 98 | |
89 | 99 | |
90 | 100 | |
| ||
96 | 106 | |
97 | 107 | |
98 | 108 | |
| 109 | + |
99 | 110 | |
100 | 111 | |
101 | 112 | |
102 | 113 | |
| 114 | + |
103 | 115 | |
104 | 116 | |
105 | 117 | |
| ||
122 | 134 | |
123 | 135 | |
124 | 136 | |
| 137 | + |
125 | 138 | |
126 | 139 | |
127 | 140 | |
|
Collapse file
+10-12Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
| 25 | + |
| 26 | + |
29 | 27 | |
| 28 | + |
30 | 29 | |
31 | 30 | |
32 | 31 | |
33 | | - |
| 32 | + |
34 | 33 | |
35 | | - |
| 34 | + |
36 | 35 | |
37 | 36 | |
38 | 37 | |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
| 38 | + |
| 39 | + |
43 | 40 | |
| 41 | + |
44 | 42 | |
45 | 43 | |
46 | 44 | |
| ||
53 | 51 | |
54 | 52 | |
55 | 53 | |
56 | | - |
57 | 54 | |
| 55 | + |
58 | 56 | |
59 | 57 | |
60 | 58 | |
|
Collapse file
lib/internal/process/policy.js
Copy file name to clipboardExpand all lines: lib/internal/process/policy.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | 12 | |
12 | 13 | |
13 | 14 | |
14 | 15 | |
| 16 | + |
15 | 17 | |
16 | 18 | |
17 | 19 | |
| ||
21 | 23 | |
22 | 24 | |
23 | 25 | |
| 26 | + |
24 | 27 | |
25 | 28 | |
26 | 29 | |
27 | 30 | |
28 | 31 | |
29 | 32 | |
| 33 | + |
30 | 34 | |
31 | 35 | |
32 | 36 | |
|
0 commit comments