fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c
This commit is contained in:
@@ -202,9 +202,11 @@ export default class ScreenPlugin extends SonarDevicePlugin<State> {
|
||||
pullingData: true,
|
||||
});
|
||||
})
|
||||
.then((): Promise<string> => {
|
||||
return self.pullFromDevice(`/sdcard/${VIDEO_FILE_NAME}`, VIDEO_PATH);
|
||||
})
|
||||
.then(
|
||||
(): Promise<string> => {
|
||||
return self.pullFromDevice(`/sdcard/${VIDEO_FILE_NAME}`, VIDEO_PATH);
|
||||
},
|
||||
)
|
||||
.then(openFile)
|
||||
.then(() => {
|
||||
self.executeShell(`rm /sdcard/${VIDEO_FILE_NAME}`);
|
||||
|
||||
@@ -443,7 +443,7 @@ export class Server extends EventEmitter {
|
||||
this.certificateProvider.processCertificateSigningRequest(
|
||||
csr,
|
||||
connectionParameters.os,
|
||||
destination
|
||||
destination,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -113,7 +113,7 @@ export default class VirtualList extends Component<
|
||||
// Overscan: render blocks of rows modulo an overscan row count
|
||||
// This dramatically reduces DOM writes during scrolling
|
||||
if (overscanCount) {
|
||||
start = Math.max(0, start - start % overscanCount);
|
||||
start = Math.max(0, start - (start % overscanCount));
|
||||
visibleRowCount += overscanCount;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,8 +65,8 @@ const DesktopDropdownItemContainer = styled.view(
|
||||
type DesktopDropdownItemState = {|hovered: boolean|};
|
||||
|
||||
type DesktopDropdownItemProps = {
|
||||
onClick?: false | ?(event: SyntheticMouseEvent<>) => void,
|
||||
onHover?: false | ?() => React$Node,
|
||||
onClick?: false | ?((event: SyntheticMouseEvent<>) => void),
|
||||
onHover?: false | ?(() => React$Node),
|
||||
children?: React$Node,
|
||||
deactivate?: () => void,
|
||||
};
|
||||
|
||||
@@ -86,7 +86,7 @@ const TableHeadColumnContainer = styled.view(
|
||||
const RIGHT_RESIZABLE = {right: true};
|
||||
|
||||
function calculatePercentage(parentWidth: number, selfWidth: number): string {
|
||||
return `${100 / parentWidth * selfWidth}%`;
|
||||
return `${(100 / parentWidth) * selfWidth}%`;
|
||||
}
|
||||
|
||||
class TableHeadColumn extends PureComponent<{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
/**
|
||||
* Copyright 2004-present Facebook.
|
||||
* Copyright 2018-present Facebook.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {exec as opensslWithCallback} from 'openssl-wrapper';
|
||||
|
||||
export function openssl(action: string, options: {}): Promise<string> {
|
||||
|
||||
@@ -10,7 +10,7 @@ import type {Rect} from './geometry.js';
|
||||
export const SNAP_SIZE = 16;
|
||||
|
||||
export function snapGrid(val: number): number {
|
||||
return val - val % SNAP_SIZE;
|
||||
return val - (val % SNAP_SIZE);
|
||||
}
|
||||
|
||||
export function getPossibleSnappedPosition(
|
||||
|
||||
Reference in New Issue
Block a user