Commit 2273314362776c804fce7d6670a99c19d724cdca
1 parent
66fcbdd93f
Exists in
master
mejor code
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -49,10 +49,7 @@ angular.module('focaModalDetalleHojaRuta') |
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | 51 | $scope.validar = function() { |
| 52 | - if(!articulosDescargados().length) { | |
| 53 | - return true; | |
| 54 | - } | |
| 55 | - return false; | |
| 52 | + return !articulosDescargados().length; | |
| 56 | 53 | }; |
| 57 | 54 | |
| 58 | 55 | function articulosDescargados() { |