Skip to content

Commit

Permalink
additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos committed Sep 26, 2024
1 parent 91d6f24 commit c368b3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/pub_worker/lib/src/bin/pana_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ Future<void> main(List<String> args) async {
docDir: rawDartdocOutputFolder.path,
);

await rawDartdocOutputFolder.delete(recursive: true);
// existence check is needed as post-processing may delete this directory
if (rawDartdocOutputFolder.existsSync()) {
await rawDartdocOutputFolder.delete(recursive: true);
}
}

final _workerConfigDirectory = Directory('/home/worker/config');
Expand Down

0 comments on commit c368b3e

Please sign in to comment.