@@ -12,9 +12,7 @@ export function getAllApplications(cls = null) {
1212 const applicationsArray = [ ] ;
1313 allApplications . forEach ( ( appName ) => {
1414 applicationsTree [ appName ] = { } ;
15- const {
16- versions, defaultVersion, build = "Default" , ...appData
17- } = getAppData ( appName ) ;
15+ const { versions, defaultVersion, build = "Default" , ...appData } = getAppData ( appName ) ;
1816 applicationsTree [ appName ] . defaultVersion = defaultVersion ;
1917 versions . forEach ( ( options ) => {
2018 const { version } = options ;
@@ -40,9 +38,7 @@ export function getAllApplications(cls = null) {
4038 * @param build {String} the build to use (optional, defaults to Default)
4139 * @return {* } an application
4240 */
43- export function getApplication ( {
44- applicationsTree, name, version = null , build = "Default" ,
45- } ) {
41+ export function getApplication ( { applicationsTree, name, version = null , build = "Default" } ) {
4642 const app = applicationsTree [ name ] ;
4743 // eslint-disable-next-line no-param-reassign
4844 if ( ! version ) version = app . defaultVersion ;
@@ -60,7 +56,10 @@ const { applicationsTree } = getAllApplications(null);
6056 */
6157export function getApplicationConfig ( { name, version = null , build = "Default" } ) {
6258 return getApplication ( {
63- applicationsTree, name, version, build,
59+ applicationsTree,
60+ name,
61+ version,
62+ build,
6463 } ) ;
6564}
6665
@@ -72,7 +71,9 @@ export function getApplicationConfig({ name, version = null, build = "Default" }
7271 */
7372export function getExecutableConfig ( { appName, execName } ) {
7473 const appTree = getAppTree ( appName ) ;
75- Object . entries ( appTree ) . forEach ( ( [ name , exec ] ) => { exec . name = name ; } ) ;
74+ Object . entries ( appTree ) . forEach ( ( [ name , exec ] ) => {
75+ exec . name = name ;
76+ } ) ;
7677 if ( ! execName ) return getOneMatchFromObject ( appTree , "isDefault" , true ) ;
7778 return appTree [ execName ] ;
7879}
0 commit comments