Skip to content
Snippets Groups Projects
Commit ea85ee0d authored by Marin Karamihalev's avatar Marin Karamihalev
Browse files

simplified version files

parent 20e882ab
Branches master
Tags
No related merge requests found
Pipeline #81146 passed
...@@ -32,7 +32,10 @@ const getCommand = ( ...@@ -32,7 +32,10 @@ const getCommand = (
version: USPVersion, version: USPVersion,
commandType: CommandType commandType: CommandType
): CommandObject | null => ): CommandObject | null =>
versionSpecificCommands[version][commandType] || common[commandType] || null; version in versionSpecificCommands &&
commandType in versionSpecificCommands[version]
? versionSpecificCommands[version][commandType]
: common[commandType] || null;
const recipes: RecipeObject[] = [resolve as any, operateRecipe, subscribe]; const recipes: RecipeObject[] = [resolve as any, operateRecipe, subscribe];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment