From 1af0935529fdb95e99bbf400863eec12f343b601 Mon Sep 17 00:00:00 2001 From: Konstantin Tarkus Date: Fri, 15 Apr 2016 11:08:32 +0300 Subject: Clean up faker.commerce.department method Remove "max" and "fixedAmount" arguments from the faker.commerce.department method --- lib/commerce.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/commerce.js') diff --git a/lib/commerce.js b/lib/commerce.js index e5a35ee7..306cf337 100644 --- a/lib/commerce.js +++ b/lib/commerce.js @@ -18,10 +18,8 @@ var Commerce = function (faker) { * department * * @method faker.commerce.department - * @param {number} max - * @param {number} fixedAmount */ - self.department = function(max, fixedAmount) { + self.department = function() { return faker.random.arrayElement(faker.definitions.commerce.department); }; -- cgit v1.2.3