Merge "Remove noop try catch statements" am: 401c6d5d23 am: 5e1f196247 am: 5a581bdeb3
Original change: https://android-review.googlesource.com/c/platform/development/+/1815095 Change-Id: I90aafa44a5260ed52a3524ff959d9c83f9fd0614
This commit is contained in:
@@ -69,14 +69,10 @@ export class OTAConfiguration {
|
||||
async sendChainForms(targetBuilds) {
|
||||
const responses = []
|
||||
this.isIncremental = true
|
||||
for (let i = 0; i < targetBuilds.length-1; i++) {
|
||||
try {
|
||||
let response =
|
||||
await this.sendForm(targetBuilds[i+1], targetBuilds[i])
|
||||
responses.push(response)
|
||||
} catch (err) {
|
||||
throw err
|
||||
}
|
||||
for (let i = 0; i < targetBuilds.length - 1; i++) {
|
||||
let response =
|
||||
await this.sendForm(targetBuilds[i + 1], targetBuilds[i])
|
||||
responses.push(response)
|
||||
}
|
||||
return responses
|
||||
}
|
||||
@@ -101,12 +97,8 @@ export class OTAConfiguration {
|
||||
}
|
||||
}
|
||||
}
|
||||
try {
|
||||
let response = await ApiServices.postInput(JSON.stringify(jsonOptions), jsonOptions.id)
|
||||
return response.data
|
||||
} catch (err) {
|
||||
throw err
|
||||
}
|
||||
let response = await ApiServices.postInput(jsonOptions, jsonOptions.id)
|
||||
return response.data
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user