Expected function call and instead saw an expressiont

 getcookiesInServer(req) {
    const serviceCookie = {};
    req && req.headers.cookie && req.headers.cookie.split(";").forEach((val) => {
      const parts = val.split("=");
      serviceCookie[parts[0].trim()] = (parts[1] || "").trim();
    });
    return serviceCookie;
  },
  // cookie
  getcookiesInClient(key) {
    return Cookie.get(key) ? Cookie.get(key) : "";
  },

report this error Expected an assignment or function call and instead saw an expression
how should I correct it, the error in line 3?

Jun.28,2021

if (req && req.headers.cookie) {
    req.headers.cookie.split(';').forEach((val) => {
      const parts = val.split('=');
      serviceCookie[parts[0].trim()] = (parts[1] || '').trim();
    });
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea3321-47a1a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea3321-47a1a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?