зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1517349 - [release 115] Fix linting issue in visibleBreakpoints (#7638). r=dwalsh
This commit is contained in:
Родитель
c5c0bd1807
Коммит
2cdebcf5d2
|
@ -27,8 +27,12 @@ export function toServerLocation(location: SourceLocation): ServerLocation {
|
|||
};
|
||||
}
|
||||
|
||||
export function createFrame(frame: any): ChromeFrame {
|
||||
export function createFrame(frame: any): ?ChromeFrame {
|
||||
const location = fromServerLocation(frame.location);
|
||||
if (!location) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
id: frame.callFrameId,
|
||||
displayName: frame.functionName,
|
||||
|
|
|
@ -72,13 +72,10 @@ export const getVisibleBreakpoints: Selector<?(Breakpoint[])> = createSelector(
|
|||
*/
|
||||
export const getFirstVisibleBreakpoints: Selector<
|
||||
Breakpoint[]
|
||||
> = createSelector(
|
||||
getVisibleBreakpoints,
|
||||
breakpoints => {
|
||||
> = createSelector(getVisibleBreakpoints, breakpoints => {
|
||||
if (!breakpoints) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return (uniqBy(sortBreakpoints(breakpoints), bp => bp.location.line): any);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче