Eslint operator spacing config (#1109)

* Eslint operator spacing config

* consistent spacing after comma

* comma styling config

* Trailing spaces config
This commit is contained in:
aashna27
2019-06-14 02:29:43 +05:30
committed by Jeffrey Warren
parent 9eac21897a
commit 440c3e0ad0
64 changed files with 400 additions and 396 deletions

View File

@@ -1,31 +1,31 @@
/*
* Decodes QR from a given image.
*/
module.exports = function DoNothing(options,UI) {
module.exports = function DoNothing(options, UI) {
var output;
var jsQR = require('jsqr');
var getPixels = require('get-pixels');
// This function is called everytime a step has to be redrawn
function draw(input,callback,progressObj) {
function draw(input, callback, progressObj) {
progressObj.stop(true);
progressObj.overrideFlag = true;
var step = this;
getPixels(input.src,function(err,pixels){
getPixels(input.src, function(err, pixels){
if(err) throw err;
var w = pixels.shape[0];
var h = pixels.shape[1];
var decoded = jsQR(pixels.data,w,h);
var decoded = jsQR(pixels.data, w, h);
// Tell Image Sequencer that this step is complete
options.step.qrval = (decoded)?decoded.data:'undefined';
options.step.qrval = (decoded) ? decoded.data : 'undefined';
});
function output(image, datauri, mimetype){