File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
packages/angular_devkit/build_angular/src/protractor Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,7 @@ async function execute(
89
89
}
90
90
91
91
if ( options . webdriverUpdate ) {
92
- try {
93
- await updateWebdriver ( ) ;
94
- } catch ( error ) {
95
- context . reportStatus ( 'Error: ' + error ) ;
96
-
97
- return { success : false } ;
98
- }
92
+ await updateWebdriver ( ) ;
99
93
}
100
94
101
95
let baseUrl ;
@@ -120,14 +114,8 @@ async function execute(
120
114
}
121
115
122
116
server = await context . scheduleTarget ( target , overrides ) ;
123
- let result ;
124
- try {
125
- result = await server . result ;
126
- } catch ( error ) {
127
- context . reportStatus ( 'Error: ' + error ) ;
128
- }
129
-
130
- if ( ! result || ! result . success ) {
117
+ const result = await server . result ;
118
+ if ( ! result . success ) {
131
119
return { success : false } ;
132
120
}
133
121
You can’t perform that action at this time.
0 commit comments