Skip to content

Commit e60d888

Browse files
committed
chore(searchbar): run lint
1 parent 5e380a1 commit e60d888

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

core/src/components/searchbar/searchbar.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -621,21 +621,21 @@ export class Searchbar implements ComponentInterface {
621621
}
622622

623623
private getShape() {
624-
const theme = getIonTheme(this);
625-
const { shape } = this;
626-
627-
// TODO(ROU-11677): Remove theme check when shapes are defined for all themes.
628-
if (theme !== 'ionic') {
629-
return undefined;
630-
}
631-
632-
if (shape === undefined) {
633-
return 'round';
634-
}
635-
636-
return shape;
624+
const theme = getIonTheme(this);
625+
const { shape } = this;
626+
627+
// TODO(ROU-11677): Remove theme check when shapes are defined for all themes.
628+
if (theme !== 'ionic') {
629+
return undefined;
637630
}
638631

632+
if (shape === undefined) {
633+
return 'round';
634+
}
635+
636+
return shape;
637+
}
638+
639639
/**
640640
* Get the icon to use for the clear icon.
641641
* If an icon is set on the component, use that.
@@ -759,7 +759,7 @@ export class Searchbar implements ComponentInterface {
759759
'searchbar-has-focus': this.focused,
760760
'searchbar-should-show-clear': this.shouldShowClearButton(),
761761
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
762-
[`searchbar-shape-${shape}`]: shape !== undefined
762+
[`searchbar-shape-${shape}`]: shape !== undefined,
763763
})}
764764
>
765765
<div class="searchbar-input-container">

core/src/components/searchbar/test/shape/searchbar.e2e.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ title, screensh
2626
const searchbar = page.locator('ion-searchbar');
2727

2828
await expect(searchbar).toHaveScreenshot(screenshot(`searchbar-shape-${shape}`));
29-
3029
});
3130
});
3231
});

0 commit comments

Comments
 (0)