File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as path from "node:path";
2
2
import type { StorybookConfig } from "@storybook/react-vite" ;
3
3
import { existsSync , readdirSync } from "node:fs" ;
4
4
5
- const isFolderEmptyOrNotExists = ( folderPath : string ) => {
5
+ const isFolderEmpty = ( folderPath : string ) => {
6
6
if ( ! existsSync ( folderPath ) ) {
7
7
return true ; // Folder does not exist
8
8
}
@@ -11,7 +11,7 @@ const isFolderEmptyOrNotExists = (folderPath: string) => {
11
11
return contents . length === 0 ;
12
12
} ;
13
13
14
- const hasPrivateFolders = ! isFolderEmptyOrNotExists (
14
+ const hasPrivateFolders = ! isFolderEmpty (
15
15
path . join ( __dirname , "../../packages/sdk-components-animation/private-src" )
16
16
) ;
17
17
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
} from "./app/shared/router-utils/origins" ;
12
12
import { readFileSync , readdirSync , existsSync } from "node:fs" ;
13
13
14
- const isFolderEmptyOrNotExists = ( folderPath : string ) => {
14
+ const isFolderEmpty = ( folderPath : string ) => {
15
15
if ( ! existsSync ( folderPath ) ) {
16
16
return true ; // Folder does not exist
17
17
}
@@ -20,7 +20,7 @@ const isFolderEmptyOrNotExists = (folderPath: string) => {
20
20
return contents . length === 0 ;
21
21
} ;
22
22
23
- const hasPrivateFolders = ! isFolderEmptyOrNotExists (
23
+ const hasPrivateFolders = ! isFolderEmpty (
24
24
path . join ( __dirname , "../../packages/sdk-components-animation/private-src" )
25
25
) ;
26
26
You can’t perform that action at this time.
0 commit comments