From dc10f0eefed91e15601f1d23fcf9bcc4b8e8eab2 Mon Sep 17 00:00:00 2001 From: Pablo Marco del Pont Date: Thu, 8 Nov 2018 17:42:51 -0300 Subject: [PATCH] Code styling. --- gulpfile.js | 2 +- src/js/controller.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index eccaee4..7611826 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -53,7 +53,7 @@ gulp.task('uglify', ['templates'], function() { ); }); -gulp.task('clean', function(){ +gulp.task('clean', function() { return gulp.src(['tmp', 'dist'], {read: false}) .pipe(clean()); }); diff --git a/src/js/controller.js b/src/js/controller.js index f1fda1e..e8dc7c3 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -574,7 +574,7 @@ angular.module('focaCrearRemito') .controller('remitoController', if(key === 13) { if($scope.articuloACargar.cantidad === undefined || $scope.articuloACargar.cantidad === 0 || - $scope.articuloACargar.cantidad === null ){ + $scope.articuloACargar.cantidad === null ) { focaModalService.alert('El valor debe ser al menos 1'); return; } @@ -591,7 +591,7 @@ angular.module('focaCrearRemito') .controller('remitoController', $scope.editarArticulo = function(key, articulo) { if(key === 13) { if(articulo.cantidad === null || articulo.cantidad === 0 || - articulo.cantidad === undefined){ + articulo.cantidad === undefined) { focaModalService.alert('El valor debe ser al menos 1'); return; } @@ -654,7 +654,7 @@ angular.module('focaCrearRemito') .controller('remitoController', function removeCabecera(label) { var propiedad = $filter('filter')($scope.cabecera, {label: label}, true); - if(propiedad.length === 1){ + if(propiedad.length === 1) { $scope.cabecera.splice($scope.cabecera.indexOf(propiedad[0]), 1); } } -- 1.9.1