NAME 5 years ago
parent
commit
dcd20cd0ee
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/extensions/cookie/bootstrap-table-cookie.js

+ 0 - 3
src/extensions/cookie/bootstrap-table-cookie.js

@@ -274,7 +274,6 @@ $.BootstrapTable = class extends $.BootstrapTable {
       let filterByCookie = {}
       let filterByCookie = {}
       try {
       try {
         filterByCookie = JSON.parse(filterByCookieValue)
         filterByCookie = JSON.parse(filterByCookieValue)
-        // eslint-disable-next-line no-empty
       } catch (e) {
       } catch (e) {
         throw new Error('Could not parse the json of the filterBy cookie!')
         throw new Error('Could not parse the json of the filterBy cookie!')
       }
       }
@@ -423,7 +422,6 @@ $.BootstrapTable = class extends $.BootstrapTable {
     const searchTextCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.searchText)
     const searchTextCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.searchText)
 
 
     const columnsCookieValue = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.columns)
     const columnsCookieValue = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.columns)
-
     if (typeof columnsCookieValue === 'boolean' && !columnsCookieValue) {
     if (typeof columnsCookieValue === 'boolean' && !columnsCookieValue) {
       throw new Error('The cookie value of filterBy must be a json!')
       throw new Error('The cookie value of filterBy must be a json!')
     }
     }
@@ -431,7 +429,6 @@ $.BootstrapTable = class extends $.BootstrapTable {
     let columnsCookie = {}
     let columnsCookie = {}
     try {
     try {
       columnsCookie = JSON.parse(columnsCookieValue)
       columnsCookie = JSON.parse(columnsCookieValue)
-      // eslint-disable-next-line no-empty
     } catch (e) {
     } catch (e) {
       throw new Error('Could not parse the json of the columns cookie!', columnsCookieValue)
       throw new Error('Could not parse the json of the columns cookie!', columnsCookieValue)
     }
     }