Skip to content

Commit 1e8ea71

Browse files
committed
Made JSHint happy.
1 parent 57bd179 commit 1e8ea71

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

logging/export.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,18 @@ function deleteSink(callback) {
8080
}
8181
// [END deleteSink]
8282

83-
exports.runExample = function runExample(cb) {
83+
exports.runExample = function (cb) {
8484
listSinks(function (err, sinks, apiResponse) {
8585
console.log(err, 'sinks:', sinks, 'apiResponse:', apiResponse);
8686
if (typeof cb === 'function') {
8787
cb(err, sinks);
8888
}
8989
});
90-
}
90+
};
91+
exports.createSink = createSink;
92+
exports.updateSink = updateSink;
93+
exports.deleteSink = deleteSink;
9194

9295
if (module === require.main) {
93-
runExample();
96+
exports.runExample();
9497
}

logging/list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ function list(callback) {
3838
}
3939
// [END list]
4040

41-
exports.runExample = function runExample(cb) {
41+
exports.runExample = function (cb) {
4242
console.log('retrieving latest 3 log entries...');
4343
list(function (err, entries, apiResponse) {
4444
console.log(err, 'entries:', entries, 'apiResponse:', apiResponse);
4545
if (typeof cb === 'function') {
4646
cb(err, entries, apiResponse);
4747
}
4848
});
49-
}
49+
};
5050

5151
if (module === require.main) {
52-
runExample();
52+
exports.runExample();
5353
}

logging/write.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function deleteLog(callback) {
7575
}
7676
// [END deleteLog]
7777

78-
exports.runExample = function runExample(cb) {
78+
exports.runExample = function (cb) {
7979
var result = [];
8080
console.log('writing 2 log entries...');
8181
write(function (err, apiResponse) {
@@ -102,8 +102,8 @@ exports.runExample = function runExample(cb) {
102102
}
103103
});
104104
});
105-
}
105+
};
106106

107107
if (module === require.main) {
108-
runExample();
108+
exports.runExample();
109109
}

storage/authSample.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function listBuckets(projectId, cb) {
6363
}
6464
// [END list_buckets]
6565

66-
exports.runExample = function runExample(projectId, cb) {
66+
exports.runExample = function (projectId, cb) {
6767
listBuckets(
6868
projectId,
6969
function (err, response) {
@@ -77,9 +77,9 @@ exports.runExample = function runExample(projectId, cb) {
7777
}
7878
}
7979
);
80-
}
80+
};
8181

8282
// For command-line execution of sample
8383
if (module === require.main) {
84-
runExample(process.argv.length > 2 ? process.argv[2] : '');
84+
exports.runExample(process.argv.length > 2 ? process.argv[2] : '');
8585
}

0 commit comments

Comments
 (0)