Skip to content

Commit 8a415fe

Browse files
author
Song Wang
committed
Fix jshint and jscs issues
1 parent 7df4e5e commit 8a415fe

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

packages/pubsub/src/v1/publisher_api.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
4141
var DEFAULT_TIMEOUT = 30;
4242

4343
var PAGE_DESCRIPTORS = {
44-
'listTopics': new gax.PageDescriptor(
44+
listTopics: new gax.PageDescriptor(
4545
'page_token',
4646
'next_page_token',
4747
'topics'),
48-
'listTopicSubscriptions': new gax.PageDescriptor(
48+
listTopicSubscriptions: new gax.PageDescriptor(
4949
'page_token',
5050
'next_page_token',
5151
'subscriptions')
@@ -93,7 +93,7 @@ function PublisherApi(gaxGrpc, grpcClient, opts) {
9393

9494

9595
var bundleDescriptors = {
96-
'publish': new gax.BundleDescriptor(
96+
publish: new gax.BundleDescriptor(
9797
'messages',
9898
[
9999
'topic'
@@ -145,7 +145,7 @@ var TOPIC_PATH_TEMPLATE = new gax.PathTemplate(
145145
*/
146146
PublisherApi.prototype.projectPath = function projectPath(project) {
147147
return PROJECT_PATH_TEMPLATE.render({
148-
'project': project
148+
project: project
149149
});
150150
};
151151

@@ -168,8 +168,8 @@ PublisherApi.prototype.matchProjectFromProjectName =
168168
*/
169169
PublisherApi.prototype.topicPath = function topicPath(project, topic) {
170170
return TOPIC_PATH_TEMPLATE.render({
171-
'project': project,
172-
'topic': topic
171+
project: project,
172+
topic: topic
173173
});
174174
};
175175

@@ -497,7 +497,7 @@ function PublisherApiBuilder(gaxGrpc) {
497497
return new PublisherApi(gaxGrpc, grpcClient, opts);
498498
};
499499
extend(this.publisherApi, PublisherApi);
500-
};
500+
}
501501
module.exports = PublisherApiBuilder;
502502
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
503503
module.exports.ALL_SCOPES = ALL_SCOPES;

packages/pubsub/src/v1/subscriber_api.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
4141
var DEFAULT_TIMEOUT = 30;
4242

4343
var PAGE_DESCRIPTORS = {
44-
'listSubscriptions': new gax.PageDescriptor(
44+
listSubscriptions: new gax.PageDescriptor(
4545
'page_token',
4646
'next_page_token',
4747
'subscriptions')
@@ -136,7 +136,7 @@ var TOPIC_PATH_TEMPLATE = new gax.PathTemplate(
136136
*/
137137
SubscriberApi.prototype.projectPath = function projectPath(project) {
138138
return PROJECT_PATH_TEMPLATE.render({
139-
'project': project
139+
project: project
140140
});
141141
};
142142

@@ -159,8 +159,8 @@ SubscriberApi.prototype.matchProjectFromProjectName =
159159
*/
160160
SubscriberApi.prototype.subscriptionPath = function subscriptionPath(project, subscription) {
161161
return SUBSCRIPTION_PATH_TEMPLATE.render({
162-
'project': project,
163-
'subscription': subscription
162+
project: project,
163+
subscription: subscription
164164
});
165165
};
166166

@@ -194,8 +194,8 @@ SubscriberApi.prototype.matchSubscriptionFromSubscriptionName =
194194
*/
195195
SubscriberApi.prototype.topicPath = function topicPath(project, topic) {
196196
return TOPIC_PATH_TEMPLATE.render({
197-
'project': project,
198-
'topic': topic
197+
project: project,
198+
topic: topic
199199
});
200200
};
201201

@@ -680,7 +680,7 @@ function SubscriberApiBuilder(gaxGrpc) {
680680
return new SubscriberApi(gaxGrpc, grpcClient, opts);
681681
};
682682
extend(this.subscriberApi, SubscriberApi);
683-
};
683+
}
684684
module.exports = SubscriberApiBuilder;
685685
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
686686
module.exports.ALL_SCOPES = ALL_SCOPES;

0 commit comments

Comments
 (0)