Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions retail/interactive-tutorials/search/search-simple-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START retail_search_simple_query]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider removing this blank line. The Samples Style Guide, referenced in the PR checklist, indicates that [START ...] region tags should be placed immediately before the code block they designate1. Examples in the guide do not show an intervening blank line. Removing this line would align the formatting more closely with the documented conventions.

Style Guide References

Footnotes

  1. The Google Samples Style Guide section on Region Tags states to 'Place the [START ...] tag immediately before the code block'. Examples provided throughout the guide consistently show region tags directly adjacent to the code, without extra blank lines.

'use strict';

async function main() {
Expand Down Expand Up @@ -76,3 +78,5 @@ process.on('unhandledRejection', err => {
});

main();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the [START ...] tag, consider removing this blank line. The Samples Style Guide indicates that [END ...] tags should be placed immediately after the code block1. Examples in the guide do not show a preceding blank line. Removing this line would ensure consistency with the documented conventions.

Style Guide References

Footnotes

  1. The Google Samples Style Guide section on Region Tags states to 'Place the ... [END ...] tag immediately after [the code block]'. Examples provided throughout the guide consistently show region tags directly adjacent to the code, without extra blank lines.

// [END retail_search_simple_query]