fix: typo

This commit is contained in:
liyasthomas
2021-06-21 16:39:51 +05:30
parent 41eb4f8395
commit 3e5629e738
4 changed files with 20 additions and 20 deletions

View File

@@ -93,7 +93,7 @@ export const CsRestsharpCodegen = {
// analyse result
requestString.push(
`if (!response.IsSuccessful)\n{\n Console.WriteLine("An error occured " + response.ErrorMessage);\n}\n\n`
`if (!response.IsSuccessful)\n{\n Console.WriteLine("An error occurred " + response.ErrorMessage);\n}\n\n`
)
requestString.push(`var result = response.Content;\n`)

View File

@@ -65,13 +65,13 @@ export const GoNativeCodegen = {
genHeaders = genHeaders.join("").slice(0, -1)
requestString.push(`${genHeaders}\n`)
requestString.push(
`if err != nil {\n log.Fatalf("An Error Occured %v", err)\n}\n\n`
`if err != nil {\n log.Fatalf("An error occurred %v", err)\n}\n\n`
)
// request boilerplate
requestString.push(`client := &http.Client{}\n`)
requestString.push(
`resp, err := client.Do(req)\nif err != nil {\n log.Fatalf("An Error Occured %v", err)\n}\n\n`
`resp, err := client.Do(req)\nif err != nil {\n log.Fatalf("An error occurred %v", err)\n}\n\n`
)
requestString.push(`defer resp.Body.Close()\n`)
requestString.push(

View File

@@ -77,7 +77,7 @@ export const SalesforceApexCodegen = {
requestString.push(` System.debug(response.getBody());\n`)
requestString.push(`} catch (CalloutException ex) {\n`)
requestString.push(
` System.debug('An error occured ' + ex.getMessage());\n`
` System.debug('An error occurred ' + ex.getMessage());\n`
)
requestString.push(`}`)