tests/bundles/tastoria_1.2.1/dist/build/q-df417458.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 1
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 1
mnd 1
bc 1
fnc 2
dl 0
loc 1
rs 10
bpm 0.5
cpm 1.5
noi 2
c 0
b 0
f 0
1
import{i as r,j as m,C as t,g as l,R as a}from"./q-9157976a.js";import{a as u}from"./q-e5403bfa.js";import{E as c}from"./q-9d0aec5c.js";const p="_menu_hh28d_1",_="_opened_hh28d_17",h="_item_hh28d_22",d="_link_hh28d_29",n={menu:p,opened:_,item:h,link:d},x=()=>{var o;const i=r(u),s=c();return(o=s.menu)!=null&&o.items?m(a,{children:t("nav",{class:[n.menu,{[n.opened]:i.isMenuOpened}]},null,[...s.menu.items.map(e=>t("li",null,{class:n.item},t("a",{href:l(e,"href")},{class:n.link},l(e,"text"),1,null),1,e.href))],1,null)},1,"Xz_0"):null};export{x as s_5kClkbuJccM};
0 ignored issues
show
Bug introduced by
The variable s_5kClkbuJccM seems to be never declared. If this is a global, consider adding a /** global: s_5kClkbuJccM */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Best Practice introduced by
Comparing o = s.menu to null using the != operator is not safe. Consider using !== instead.
Loading history...
2