Explorar o código

chore: Remove comment and unneeded export

Johannes Schill %!s(int64=7) %!d(string=hai) anos
pai
achega
a91037fb50
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      public/app/core/utils/scrollbar.ts

+ 2 - 2
public/app/core/utils/scrollbar.ts

@@ -6,7 +6,7 @@ export default function getScrollbarWidth() {
   if (scrollbarWidth !== null) {
     return scrollbarWidth;
   }
-  /* istanbul ignore else */
+
   if (typeof document !== 'undefined') {
     const div = document.createElement('div');
     const newStyles = {
@@ -31,7 +31,7 @@ export default function getScrollbarWidth() {
   return scrollbarWidth || 0;
 }
 
-export const hasNoOverlayScrollbars = getScrollbarWidth() > 0;
+const hasNoOverlayScrollbars = getScrollbarWidth() > 0;
 
 export const addClassIfNoOverlayScrollbar = (classname: string, htmlElement: HTMLElement = document.body) => {
   if (hasNoOverlayScrollbars) {