@@ -7,7 +7,7 @@ class Content extends Lib {
77 }
88
99 async content ( ) {
10- return this . req ( ` /content` ) ;
10+ return this . req ( ' /content' )
1111 }
1212
1313 /*
@@ -17,32 +17,32 @@ class Content extends Lib {
1717 }
1818 */
1919 async list ( name , params = { } ) {
20- if ( typeof name === "undefined" )
21- throw this . throwError ( 'Content.list()' , 'a name' ) ;
22-
23- params . ids = this . parent . utils . makeCSV ( params . ids ) ;
20+ if ( typeof name === 'undefined' )
21+ throw this . throwError ( 'data.list()' , 'a name' )
2422
25- return this . req ( `/${ name } ` , params ) ;
23+ params . ids = this . parent . utils . makeCSV ( params . ids )
24+
25+ return this . req ( `/${ name } ` , params )
2626 }
2727
2828 async get ( name , id ) {
29- const missing_params = [ ] ;
30- if ( typeof name === " undefined" )
31- missing_params . push ( 'a name' ) ;
32- if ( typeof id === " undefined" )
33- missing_params . push ( 'an ID' ) ;
29+ const missing_params = [ ]
30+ if ( typeof name === ' undefined' )
31+ missing_params . push ( 'a name' )
32+ if ( typeof id === ' undefined' )
33+ missing_params . push ( 'an ID' )
3434 if ( missing_params . length > 0 )
35- throw this . throwError ( `Content .get()` , missing_params . join ( "," ) ) ;
36-
37- return this . req ( `/${ name } /${ id } ` ) ;
35+ throw this . throwError ( 'data .get()' , missing_params . join ( ',' ) )
36+
37+ return this . req ( `/${ name } /${ id } ` )
3838 }
3939
4040 servers ( ) {
41- return this . req ( ` /servers` ) ;
41+ return this . req ( ' /servers' )
4242 }
4343
4444 datacenters ( ) {
45- return this . req ( ` /servers/dc` ) ;
45+ return this . req ( ' /servers/dc' )
4646 }
4747
4848
0 commit comments