Skip to content

Commit 1b3c025

Browse files
committed
Remove .DS_Store check
This check is no longer necessary as we do an `is_dir` check first.
1 parent 6fa23d9 commit 1b3c025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function get_valet_site_path($valetConfig, $siteName, $domain)
139139
$dirs = [];
140140

141141
while (false !== ($file = readdir($handle))) {
142-
if (is_dir($path.'/'.$file) && ! in_array($file, ['.', '..', '.DS_Store'])) {
142+
if (is_dir($path.'/'.$file) && ! in_array($file, ['.', '..'])) {
143143
$dirs[] = $file;
144144
}
145145
}

0 commit comments

Comments
 (0)