From 29f93160b7d791697af19dbe2db643b27b7a66c1 Mon Sep 17 00:00:00 2001 From: Alejandro Ocampo Date: Fri, 3 Nov 2017 11:51:39 +0100 Subject: [PATCH] removing unnecessary if statement --- .../src/views/propertyeditors/textbox/textbox.controller.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.controller.js index 5ab37fcb65..e88f118c49 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.controller.js @@ -10,11 +10,7 @@ function textboxController($scope) { } if ($scope.model.config && $scope.model.config.maxChars) { - if ($scope.model.config.maxChars < 500) { - $scope.model.showcharacterslefttext = true; - } else { - $scope.model.showcharacterslefttext = false; - } + $scope.model.showcharacterslefttext = $scope.model.config.maxChars < 500; if ($scope.model.value == undefined) { $scope.model.count = ($scope.model.config.maxChars * 1);