releaseLock method

Future<void> releaseLock(
  1. String projectPath, {
  2. bool dryRun = false,
})

Releases the local process lock for projectPath.

Implementation

Future<void> releaseLock(String projectPath, {bool dryRun = false}) async {
  if (dryRun) return;
  final lockFile = File(getLockFilePath(projectPath));
  if (await lockFile.exists()) {
    try {
      await lockFile.delete();
    } catch (_) {}
  }
}