Skip to content
Permalink
Browse files

Streamline CompUnit::Repository::Locally.id a bit

  • Loading branch information...
lizmat committed Jan 6, 2019
1 parent 64c88f9 commit 839f28e77a4d652856e5ac011344069d7dfed463
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/core/CompUnit/Repository/Locally.pm6
@@ -34,9 +34,11 @@ role CompUnit::Repository::Locally {
method prefix { "{$!prefix}".IO }

method id() {
my $name = self.path-spec;
$name ~= ',' ~ self.next-repo.id if self.next-repo;
return nqp::sha1($name);
nqp::sha1(
self.next-repo
?? self.path-spec ~ ',' ~ self.next-repo.id
!! self.path-spec
)
}

# stubs

0 comments on commit 839f28e

Please sign in to comment.
You can’t perform that action at this time.