Skip to content

Commit

Permalink
Remove no longer needed check
Browse files Browse the repository at this point in the history
The check to see if the dev version is equal to the directory to be
removed is no longer needed

See:
HaxeFoundation#263 and 1390259, 866f009
  • Loading branch information
tobil4sk committed Apr 4, 2022
1 parent b1aaf4f commit d763ba2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/haxelib/client/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1467,9 +1467,6 @@ class Main {
final cur = File.getContent(pdir + "/.current").trim(); // set version regardless of dev
if( cur == version )
throw "Can't remove current version of library "+prj;
final dev = try getDev(pdir) catch (_:Dynamic) null; // dev is checked here
if( dev == vdir )
throw "Can't remove dev version of library "+prj;
deleteRec(vdir);
print("Library "+prj+" version "+version+" removed");
}
Expand Down

0 comments on commit d763ba2

Please sign in to comment.