Merge "Remove noop try catch statements" am: 401c6d5d23

Original change: https://android-review.googlesource.com/c/platform/development/+/1815095

Change-Id: I6c5c988fb833d75cf03359267db6bbce049319fa
This commit is contained in:
Kelvin Zhang
2021-09-01 14:34:06 +00:00
committed by Automerger Merge Worker

View File

@@ -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
}
/**