mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 01:02:51 +00:00
Remove unnecessary guard clause
This commit is contained in:
@@ -50,7 +50,6 @@ async function createHBStore(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function historyCheck(brew){
|
export async function historyCheck(brew){
|
||||||
if(!IDB) return false;
|
|
||||||
const historyExists = await IDB.keys(await createHBStore())
|
const historyExists = await IDB.keys(await createHBStore())
|
||||||
.then((keys)=>{
|
.then((keys)=>{
|
||||||
return [...keys].some((key)=>{
|
return [...keys].some((key)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user