Skip to content

Commit

Permalink
minor but ugly bug in refex expression sugar code
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaramc committed Mar 6, 2013
1 parent f76afc6 commit 37833af
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/syntactic-sugar/refex-expr
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ my $seq = 1;
sub sugar_script {
my $lines = shift;

Gitolite::Common::dd ['lines', $lines];

# my @out = ();
for my $l (@$lines) {
push @out, $l;
Expand All @@ -26,14 +24,11 @@ sub sugar_script {
print STDERR ">>>> $l\n";
pop @out; # we need to replace that last line

my @words = grep { $_ !~ /^(and|not|or|xor|\+|-|==|-lt|-gt|-eq|-le|-ge|-ne)$/ } split ' ', $refexes;
push @out, map { "RW+ $_ = $users" } @words;
push @out, "option refex-expr.sugar$seq = $refexes";
push @out, "$perm VREF/refex-expr/sugar$seq = $users";

$seq++;
}

Gitolite::Common::dd ['out', \@out];
return \@out;
}

0 comments on commit 37833af

Please sign in to comment.