mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(client) join: rm Util.check
This commit is contained in:
parent
5cb7311b30
commit
4f2a507f2e
1 changed files with 2 additions and 1 deletions
|
|
@ -177,7 +177,8 @@ var Util, DOM, CloudFunc, join;
|
|||
this.join = function(urls) {
|
||||
var prefix = CloudCmd.PREFIX;
|
||||
|
||||
Util.check(arguments, ['urls']);
|
||||
if (typeof urls !== 'string')
|
||||
throw Error('urls should be string!');
|
||||
|
||||
urls = urls.map(function(url) {
|
||||
return url.replace(prefix, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue