in nuxt"s project, ESlint is referenced and a method is written
const f = function (val, sval) {
if (val === "A" || val === "B") {
return "";
}
if (val === "C") {
return "";
}
if (val === "D" && sval < 5) {
return "";
}
if (val === "D") {
return "";
}
if (val === "E") {
return "";
}
if (val === "F") {
return "";
}
if (val === "G") {
return "";
}
if (val === "I") {
return "";
}
if (val === "J") {
return "";
}
if (val === "K") {
return "";
}}
prompt error Expected to return a value at the end of function
how to change