Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dshuffma-ibm committed Mar 22, 2017
1 parent 59fb56b commit bb69ed8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"immed": true,
"latedef": "nofunc",
"newcap": true,
"nonew": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
Expand All @@ -18,8 +17,9 @@
"sub": true,
"shadow": "inner",
"funcscope": false,
"maxlen": 500,
"maxdepth": 5,
"maxlen": 160,
"maxdepth": 7,
"maxerr": 100,
"maxparams": 6
"maxparams": 6,
"nonew": false
}
2 changes: 1 addition & 1 deletion busters_js.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"public/js/singlejshash":"ed3caec92ba5c53a8bf69e9c81f2fdcb"}
{"public/js/singlejshash":"5e7b21df981394a88eba4eee6276743b"}
3 changes: 2 additions & 1 deletion public/js/ui_building.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ function build_user_panels(data) {
full_owner = build_full_owner(data[i].username, data[i].company);
console.log('[ui] building owner panel ' + full_owner);

html += '<div id="user' + i + 'wrap" username="' + data[i].username + '" company="' + data[i].company + '" full_owner="' + full_owner + '" class="marblesWrap ' + colorClass + '">';
html += '<div id="user' + i + 'wrap" username="' + data[i].username + '" company="' + data[i].company +
'" full_owner="' + full_owner + '" class="marblesWrap ' + colorClass + '">';
html += '<div class="legend" style="' + size_user_name(data[i].username) + '">';
html += toTitleCase(data[i].username);
html += '<span class="fa fa-thumb-tack marblesCloseSectionPos marblesFix" title="Never Hide Owner"></span>';
Expand Down
2 changes: 1 addition & 1 deletion utils/fc_wrangler/enrollment.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = function (logger) {
);
};

// Get Submitter - ripped this function off from helper.js in fabric-client
// Get Submitter - ripped this function off from fabric-client
function getSubmitter(client, options) {
var member;
return client.getUserContext(options.enroll_id).then((user) => {
Expand Down
10 changes: 5 additions & 5 deletions utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ var crypto = require('crypto');
module.exports = function (config_filename, logger) {
var helper = {};

// default config file name
if (!config_filename) {
config_filename = 'marbles1.json';
}
// default config file name
if (!config_filename) {
config_filename = 'marbles1.json';
}

var config_path = path.join(__dirname, '../config/' + config_filename);
helper.config = require(config_path);
var creds_path = path.join(__dirname, '../config/' + helper.config.cred_filename);
Expand Down

0 comments on commit bb69ed8

Please sign in to comment.