Skip to content

Commit ce4433b

Browse files
making prettier happy
Co-authored-by: Saikrishna321 <[email protected]>
1 parent f8d5a9c commit ce4433b

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

app/common/renderer/actions/Session.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,17 @@ export function newSession(caps, attachSessId = null) {
241241

242242
// Get capabilities and interpolate environment variables
243243
let desiredCapabilities = caps ? getCapsObject(caps) : {};
244-
244+
245245
// Modify this section to handle W3C capabilities format
246246
if (desiredCapabilities.alwaysMatch) {
247247
desiredCapabilities.alwaysMatch = interpolateEnvironmentVariables(
248248
desiredCapabilities.alwaysMatch,
249-
environmentVariables
249+
environmentVariables,
250250
);
251251
} else {
252252
desiredCapabilities = interpolateEnvironmentVariables(
253253
desiredCapabilities,
254-
environmentVariables
254+
environmentVariables,
255255
);
256256
}
257257

@@ -1225,7 +1225,7 @@ export function setEnvironmentVariables(envVars) {
12251225

12261226
export function loadEnvironmentVariables() {
12271227
return async (dispatch) => {
1228-
const envVars = await getSetting(ENVIRONMENT_VARIABLES) || [];
1228+
const envVars = (await getSetting(ENVIRONMENT_VARIABLES)) || [];
12291229
dispatch({type: SET_ENVIRONMENT_VARIABLES, envVars});
12301230
};
12311231
}

app/common/renderer/components/Session/EnvironmentVariables.jsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ const EnvironmentVariables = ({t, envVars, addVariable, deleteVariable}) => {
8686
</Button>
8787
</Space.Compact>
8888
</div>
89-
<Table columns={columns} dataSource={tableData} pagination={false} rowKey="key" size="small" />
89+
<Table
90+
columns={columns}
91+
dataSource={tableData}
92+
pagination={false}
93+
rowKey="key"
94+
size="small"
95+
/>
9096
</div>
9197
</Card>
9298
);

app/common/renderer/reducers/Inspector.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ let nextState;
141141

142142
export default function inspector(state = INITIAL_STATE, action) {
143143
switch (action.type) {
144-
145144
case SET_SOURCE_AND_SCREENSHOT:
146145
return {
147146
...state,
@@ -677,15 +676,15 @@ export default function inspector(state = INITIAL_STATE, action) {
677676
...state,
678677
environmentVariables: [
679678
...(state.environmentVariables || []),
680-
{key: action.key, value: action.value}
679+
{key: action.key, value: action.value},
681680
],
682681
};
683682

684683
case DELETE_ENVIRONMENT_VARIABLE:
685684
return {
686685
...state,
687686
environmentVariables: (state.environmentVariables || []).filter(
688-
(envVar) => envVar.key !== action.key
687+
(envVar) => envVar.key !== action.key,
689688
),
690689
};
691690

app/common/renderer/reducers/Session.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
SWITCHED_TABS,
4242
SET_ENVIRONMENT_VARIABLES,
4343
ADD_ENVIRONMENT_VARIABLE,
44-
DELETE_ENVIRONMENT_VARIABLE
44+
DELETE_ENVIRONMENT_VARIABLE,
4545
} from '../actions/Session';
4646
import {SERVER_TYPES, SESSION_BUILDER_TABS} from '../constants/session-builder';
4747

0 commit comments

Comments
 (0)