We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ecbf6 commit bb7b06aCopy full SHA for bb7b06a
src/Commands/ResetCommand.php
@@ -48,11 +48,14 @@ public function handle(): int
48
$packageJson = json_decode(file_get_contents($packageJsonPath), true);
49
$appName = $packageJson['name'];
50
51
- $appDataPath = $this->appDataDirectory($appName);
52
- $this->line('Clearing: '.$appDataPath);
53
-
54
- if ($filesystem->exists($appDataPath)) {
55
- $filesystem->remove($appDataPath);
+ // Eh, just in case, I don't want to delete all user data by accident.
+ if (! empty($appName)) {
+ $appDataPath = $this->appDataDirectory($appName);
+ $this->line('Clearing: '.$appDataPath);
+
56
+ if ($filesystem->exists($appDataPath)) {
57
+ $filesystem->remove($appDataPath);
58
+ }
59
}
60
61
0 commit comments