Dotos 8 years ago
parent
commit
af5423f6f2
1 changed files with 1 additions and 3 deletions
  1. 1 3
      routes/mobile.js

+ 1 - 3
routes/mobile.js

@@ -22,9 +22,7 @@ router.post('/', urlencodedParser, function(req, res, next) {
 });
 
 function getMobile(req, res, next) {
-    if (!!type) {
-        url += '&dtype=' + type;
-    }
+    url += !!type ? '&dtype=' + type : '';
     request(url, function(err, response, body) {
         if (!type) {
             body = JSON.parse(body);