lint(curly): consistent use of curly brackets in codebase (#3584)

This commit is contained in:
Alireza authored and GitHub committed 2023-08-09 10:07:33 -04:00
1 parent 9ae3d9f769
commit 5d435424e2
113 files changed
+1501 -1056

No files matched your search

@@ -27,7 +27,9 @@ export default function CineProvider({ children, service }) {
const { id, frameRate, isPlaying = undefined } = action.payload;
const cines = state.cines;
if (!cines[id]) cines[id] = { id, ...DEFAULT_CINE };
if (!cines[id]) {
cines[id] = { id, ...DEFAULT_CINE };
}
cines[id].frameRate = frameRate || cines[id].frameRate;
cines[id].isPlaying =
isPlaying !== undefined ? isPlaying : cines[id].isPlaying;
@@ -19,7 +19,7 @@ const DEFAULT_STATE = {
console.log('btn value?');
},
onOutsideClick: () => {
console.warn('default: onOutsideClick')
console.warn('default: onOutsideClick');
},
onDismiss: () => {
console.log('dismiss? -1');
@@ -135,7 +135,9 @@ export function ViewportGridProvider({ children, service }) {
// Have the initial id set contain all viewports not updated here
const viewportIdSet = new Set();
viewports.forEach((viewport, index) => {
if (!viewport.viewportId) return;
if (!viewport.viewportId) {
return;
}
const isUpdated = payload.find(
newViewport => newViewport.viewportIndex === index
);
@@ -228,7 +230,9 @@ export function ViewportGridProvider({ children, service }) {
activeViewportIndexToSet = pos;
}
const viewport = findOrCreateViewport(pos, positionId, options);
if (!viewport) continue;
if (!viewport) {
continue;
}
viewport.positionId = positionId;
// Create a new viewport object as it is getting updated here
// and it is part of the read only state