Skip to content

Commit

Permalink
Fix jshint and jscs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Wang committed Aug 31, 2016
1 parent 7df4e5e commit 8a415fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions packages/pubsub/src/v1/publisher_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
var DEFAULT_TIMEOUT = 30;

var PAGE_DESCRIPTORS = {
'listTopics': new gax.PageDescriptor(
listTopics: new gax.PageDescriptor(
'page_token',
'next_page_token',
'topics'),
'listTopicSubscriptions': new gax.PageDescriptor(
listTopicSubscriptions: new gax.PageDescriptor(
'page_token',
'next_page_token',
'subscriptions')
Expand Down Expand Up @@ -93,7 +93,7 @@ function PublisherApi(gaxGrpc, grpcClient, opts) {


var bundleDescriptors = {
'publish': new gax.BundleDescriptor(
publish: new gax.BundleDescriptor(
'messages',
[
'topic'
Expand Down Expand Up @@ -145,7 +145,7 @@ var TOPIC_PATH_TEMPLATE = new gax.PathTemplate(
*/
PublisherApi.prototype.projectPath = function projectPath(project) {
return PROJECT_PATH_TEMPLATE.render({
'project': project
project: project
});
};

Expand All @@ -168,8 +168,8 @@ PublisherApi.prototype.matchProjectFromProjectName =
*/
PublisherApi.prototype.topicPath = function topicPath(project, topic) {
return TOPIC_PATH_TEMPLATE.render({
'project': project,
'topic': topic
project: project,
topic: topic
});
};

Expand Down Expand Up @@ -497,7 +497,7 @@ function PublisherApiBuilder(gaxGrpc) {
return new PublisherApi(gaxGrpc, grpcClient, opts);
};
extend(this.publisherApi, PublisherApi);
};
}
module.exports = PublisherApiBuilder;
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
module.exports.ALL_SCOPES = ALL_SCOPES;
14 changes: 7 additions & 7 deletions packages/pubsub/src/v1/subscriber_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
var DEFAULT_TIMEOUT = 30;

var PAGE_DESCRIPTORS = {
'listSubscriptions': new gax.PageDescriptor(
listSubscriptions: new gax.PageDescriptor(
'page_token',
'next_page_token',
'subscriptions')
Expand Down Expand Up @@ -136,7 +136,7 @@ var TOPIC_PATH_TEMPLATE = new gax.PathTemplate(
*/
SubscriberApi.prototype.projectPath = function projectPath(project) {
return PROJECT_PATH_TEMPLATE.render({
'project': project
project: project
});
};

Expand All @@ -159,8 +159,8 @@ SubscriberApi.prototype.matchProjectFromProjectName =
*/
SubscriberApi.prototype.subscriptionPath = function subscriptionPath(project, subscription) {
return SUBSCRIPTION_PATH_TEMPLATE.render({
'project': project,
'subscription': subscription
project: project,
subscription: subscription
});
};

Expand Down Expand Up @@ -194,8 +194,8 @@ SubscriberApi.prototype.matchSubscriptionFromSubscriptionName =
*/
SubscriberApi.prototype.topicPath = function topicPath(project, topic) {
return TOPIC_PATH_TEMPLATE.render({
'project': project,
'topic': topic
project: project,
topic: topic
});
};

Expand Down Expand Up @@ -680,7 +680,7 @@ function SubscriberApiBuilder(gaxGrpc) {
return new SubscriberApi(gaxGrpc, grpcClient, opts);
};
extend(this.subscriberApi, SubscriberApi);
};
}
module.exports = SubscriberApiBuilder;
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
module.exports.ALL_SCOPES = ALL_SCOPES;

0 comments on commit 8a415fe

Please sign in to comment.