Skip to content

Commit 66ca611

Browse files
authored
chore: remove snippet leading whitespace (#289)
1 parent 4a576ab commit 66ca611

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/google-cloud-iot/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ npm install @google-cloud/iot
5757
### Using the client library
5858

5959
```javascript
60-
const iot = require('@google-cloud/iot');
61-
const client = new iot.v1.DeviceManagerClient();
62-
63-
async function quickstart() {
64-
const projectId = await client.getProjectId();
65-
const parent = client.locationPath(projectId, 'us-central1');
66-
const [resources] = await client.listDeviceRegistries({parent});
67-
console.log(`${resources.length} resource(s) found.`);
68-
for (const resource of resources) {
69-
console.log(resource);
70-
}
60+
const iot = require('@google-cloud/iot');
61+
const client = new iot.v1.DeviceManagerClient();
62+
63+
async function quickstart() {
64+
const projectId = await client.getProjectId();
65+
const parent = client.locationPath(projectId, 'us-central1');
66+
const [resources] = await client.listDeviceRegistries({parent});
67+
console.log(`${resources.length} resource(s) found.`);
68+
for (const resource of resources) {
69+
console.log(resource);
7170
}
72-
quickstart();
71+
}
72+
quickstart();
7373

7474
```
7575

0 commit comments

Comments
 (0)