Skip to content

Commit

Permalink
move end region tag to inside main function
Browse files Browse the repository at this point in the history
  • Loading branch information
murog committed May 23, 2019
1 parent d4c6c5c commit 0c29526
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion container-analysis/snippets/createNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function main(
});

console.log(`Note ${note.name} created.`);
// [END containeranalysis_create_note]
}
// [END containeranalysis_create_note]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/createOccurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function main(
});
console.log(`Occurrence created ${occurrence.name}.`);
return occurrence;
// [END containeranalysis_create_occurrence]
}
// [END containeranalysis_create_occurrence]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/deleteNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main(
// Delete the note
await client.deleteNote({name: formattedName});
console.log(`Note ${formattedName} deleted.`);
// [END containeranalysis_delete_note]
}
// [END containeranalysis_delete_note]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/deleteOccurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main(
});

console.log(`Occurrence deleted: ${formattedName}`);
// [END containeranalysis_delete_occurrence]
}
// [END containeranalysis_delete_occurrence]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/getDiscoveryInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main(
} else {
console.log('No occurrences found.');
}
// [END containeranalysis_discovery_info]
}
// [END containeranalysis_discovery_info]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/getNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
const [note] = await client.getNote({name: formattedName});

console.log(`Note name: ${note.name}`);
// [END containeranalysis_get_note]
}
// [END containeranalysis_get_note]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/getOccurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main(
});

console.log(`Occurrence name: ${occurrence.name}`);
// [END containeranalysis_get_occurrence]
}
// [END containeranalysis_get_occurrence]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/highVulnerabilitiesForImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function main(
} else {
console.log('No occurrences found.');
}
// [END containeranalysis_filter_vulnerability_occurrences]
}
// [END containeranalysis_filter_vulnerability_occurrences]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/occurrencePubSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function main(
subscription.removeListener(`message`, messageHandler);
console.log(`Polled ${count} occurrences`);
}, timeoutSeconds * 1000);
// [END containeranalysis_pubsub]
}
// [END containeranalysis_pubsub]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/occurrencesForImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main(
} else {
console.log('No occurrences found.');
}
// [END containeranalysis_occurrences_for_image]
}
// [END containeranalysis_occurrences_for_image]

main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion container-analysis/snippets/occurrencesForNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function main(
} else {
console.log('No occurrences found.');
}
// [END containeranalysis_occurrences_for_note]
}
// [END containeranalysis_occurrences_for_note]

main(...process.argv.slice(2));
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main(
} else {
console.log('No occurrences found.');
}
// [END containeranalysis_vulnerability_occurrences_for_image]
}
// [END containeranalysis_vulnerability_occurrences_for_image]

main(...process.argv.slice(2));

0 comments on commit 0c29526

Please sign in to comment.