Skip to content

Commit cbd14b1

Browse files
fix-lints
1 parent 49aeffb commit cbd14b1

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

model-armor/snippets/quickstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async function quickstart(
107107
return {
108108
templateName: createdTemplate.name,
109109
userPromptSanitizeResponse,
110-
modelSanitizeResponse
110+
modelSanitizeResponse,
111111
};
112112
// [END modelarmor_quickstart]
113113
}

model-armor/test/modelarmor.test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
'use strict';
1616

17-
const cp = require('child_process');
1817
const {v4: uuidv4} = require('uuid');
1918
const {ModelArmorClient} = require('@google-cloud/modelarmor').v1;
2019

@@ -27,8 +26,6 @@ const options = {
2726
const client = new ModelArmorClient(options);
2827
const templateIdPrefix = `test-template-${uuidv4().substring(0, 8)}`;
2928

30-
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
31-
3229
describe('Model Armor tests', () => {
3330
const templatesToDelete = [];
3431

@@ -54,11 +51,7 @@ describe('Model Armor tests', () => {
5451
const quickstart = require('../snippets/quickstart');
5552
const testQuickstartTemplateId = `${templateIdPrefix}-quickstart`;
5653

57-
await quickstart(
58-
projectId,
59-
locationId,
60-
testQuickstartTemplateId
61-
);
54+
await quickstart(projectId, locationId, testQuickstartTemplateId);
6255

6356
templatesToDelete.push(
6457
`projects/${projectId}/locations/${locationId}/templates/${testQuickstartTemplateId}`

0 commit comments

Comments
 (0)