cleanup: Use new indentation style for arrays
We've made some progress on transitioning to the modern indentation style, and for arrays the legacy style is now rare enough to make a bulk transition feasible. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2200>
This commit is contained in:

committed by
Marge Bot

parent
696965c9f7
commit
ac9fbe92e5
@ -795,16 +795,20 @@ class InputSourceIndicatorContainer extends St.Widget {
|
||||
// for those we don't actually display.
|
||||
return this.get_children().reduce((maxWidth, child) => {
|
||||
let width = child.get_preferred_width(forHeight);
|
||||
return [Math.max(maxWidth[0], width[0]),
|
||||
Math.max(maxWidth[1], width[1])];
|
||||
return [
|
||||
Math.max(maxWidth[0], width[0]),
|
||||
Math.max(maxWidth[1], width[1]),
|
||||
];
|
||||
}, [0, 0]);
|
||||
}
|
||||
|
||||
vfunc_get_preferred_height(forWidth) {
|
||||
return this.get_children().reduce((maxHeight, child) => {
|
||||
let height = child.get_preferred_height(forWidth);
|
||||
return [Math.max(maxHeight[0], height[0]),
|
||||
Math.max(maxHeight[1], height[1])];
|
||||
return [
|
||||
Math.max(maxHeight[0], height[0]),
|
||||
Math.max(maxHeight[1], height[1]),
|
||||
];
|
||||
}, [0, 0]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user