Skip to content

Commit f6d3258

Browse files
committed
code style updates
1 parent c471818 commit f6d3258

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xt/aspell.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ text that is part of a code example)
2727

2828
my @files = Test-Files.documents.grep({not $_ ~~ / 'README.' .. '.md' /});
2929

30-
plan +@files *2;
30+
plan +@files * 2;
3131

3232
my $proc = shell('aspell -v');
3333
if $proc.exitcode {
@@ -86,7 +86,7 @@ my @jobs = @files.race.map: -> $file {
8686

8787
whenever $proc.stdout.lines {
8888
$lock.protect: {
89-
%output{$file}{$type}<output> = (%output{$file}{$type}<output> // '') ~ $_ ~ "\n";
89+
%output{$file}{$type}<output> ~= "$_\n";
9090
}
9191
}
9292

@@ -105,7 +105,7 @@ for %output.keys.sort -> $file {
105105
for %output{$file}.keys -> $type {
106106
my $spelling-error-count = 0;
107107
for %output{$file}{$type}<output>.lines.tail(*-1) -> $line {
108-
next if $line eq '';
108+
next unless $line;
109109
diag $line;
110110
$spelling-error-count++;
111111
}

xt/words.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ is(~@dupes, "", "No duplicates between xt/words.pws and xt/code.pws");
3838
# are all the words lower case?
3939
# (ignore some unicode that aspell doesn't case fold as well as we do.
4040
sub get-uppers(@lexicon) {
41-
@lexicon.grep({.lc ne $_}).grep({ ! $_.contains('Þ')})
41+
@lexicon.grep({ .lc ne $_ }).grep({ ! $_.contains('Þ') })
4242
}
4343

4444
my $uppers = get-uppers(@words);

0 commit comments

Comments
 (0)