Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
Code formatting and a var name update to make it more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwex committed Apr 17, 2014
1 parent 8bc3d0d commit 02e78bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/makeapi-publisher.js
Expand Up @@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

exports.create = function (url, id, secret) {
if(url) {
exports.create = function (makeApiUrl, id, secret) {
if (makeApiUrl) {
var makeapiClient = new (require('makeapi-client'))({
apiURL: url,
apiURL: makeApiUrl,
hawk: {
key: secret,
id: id,
Expand All @@ -16,7 +16,7 @@ exports.create = function (url, id, secret) {
var REMIX_PREFIX = process.env.PUBLISH_HOST_PREFIX + process.env.PUBLISH_HOST + "/remix?app=";

return {
publish: function (publishOptions, callback) {
publish: function(publishOptions, callback) {
makeapiClient.create({
url: publishOptions.url,
contenturl: publishOptions.url,
Expand All @@ -34,7 +34,8 @@ exports.create = function (url, id, secret) {
});
}
};
} else {
}
else {
return {
publish: function(publishOptions, callback) {
callback(null);
Expand Down

0 comments on commit 02e78bc

Please sign in to comment.