| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** |
||
| 15 | OCA.Files.Files.getDownloadUrl = function (filename, dir) { |
||
| 16 | var path = dir || this.getCurrentDirectory(); |
||
| 17 | if (_.isArray(filename)) { |
||
| 18 | filename = JSON.stringify(filename); |
||
| 19 | } |
||
| 20 | var params = { |
||
| 21 | path: path |
||
| 22 | }; |
||
| 23 | if (filename) { |
||
| 24 | params.files = filename; |
||
| 25 | } |
||
| 26 | return OC.generateUrl('/s/' + Gallery.token + '/download') + '?' + OC.buildQueryString(params); |
||
| 27 | }; |
||
| 28 | })(jQuery, OC, t); |
||
| 29 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.