Skip to content

Commit 1848364

Browse files
Fix lint.
1 parent e1e5441 commit 1848364

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/language/src/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var v1beta2 = require('./v1beta2');
2929
var _GAPICS = {
3030
v1: v1,
3131
v1beta2: v1beta2
32-
}
32+
};
3333

3434
/**
3535
* @type {module:language/document}
@@ -56,18 +56,20 @@ var Document = require('./document.js');
5656
* @resource [Cloud Natural Language API Documentation]{@link https://cloud.google.com/natural-language/docs}
5757
*
5858
* @param {object} options - [Configuration object](#/docs).
59+
* @param {string} options.apiVersion - API version. Defaults to "v1";
60+
* the only other valid value is "v1beta2".
5961
*/
6062
function Language(options) {
6163
if (!(this instanceof Language)) {
6264
options = common.util.normalizeArguments(this, options);
6365
return new Language(options);
6466
}
65-
67+
6668
options = extend({}, options, {
6769
libName: 'gccl',
6870
libVersion: require('../package.json').version
6971
});
70-
72+
7173
// Determine the version to be used.
7274
// We default to "v1", but use "v1beta2" if explicitly requested. Both
7375
// GAPICs are packaged with the library.

packages/language/test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ describe('Language', function() {
6868
fakeV1Override = null;
6969
language = new Language(OPTIONS);
7070
});
71-
71+
7272
describe('instantiation', function() {
7373
it('should promisify all the things', function() {
7474
assert(promisified);
7575
});
76-
76+
7777
it('should accept an apiVersion "v1beta2"', function() {
7878
var RealLanguage = require('../src/index.js');
79-
79+
8080
// The v1beta2 GAPIC adds a new `analyzeEntitySentiment` function.
8181
var langBeta = new RealLanguage({apiVersion: 'v1beta2'});
8282
assert.strictEqual(typeof langBeta.api.Language.analyzeEntitySentiment,
8383
'function');
8484
});
85-
85+
8686
it('should not accept an unrecognized version', function() {
8787
assert.throws(function() {
8888
new Language({apiVersion: 'v1beta42'});

0 commit comments

Comments
 (0)