Skip to content

Commit

Permalink
dartfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jul 14, 2018
1 parent 7e22a87 commit 08e3a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions lib/src/crawl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ Future<CrawlResult> crawl(
count += 1;
print("Server check for ${result.host} complete: "
"${result.didNotConnect ? 'didn\'t connect' : 'connected'}, "
"${result.robotsTxtContents.isEmpty
? 'no robots.txt'
: 'robots.txt found'}.");
"${result.robotsTxtContents.isEmpty ? 'no robots.txt' : 'robots.txt found'}.");
} else {
if (ansiTerm) {
cursor.moveLeft(count.toString().length);
Expand Down
8 changes: 2 additions & 6 deletions lib/src/writer_report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,9 @@ void printWithoutAnsi(Uri uri, List<Link> broken, Stdout stdout) {
":${link.origin.span.start.column}) "
"$tag"
"=> ${link.destination.url}"
"${link.fragment == null
? ''
: '#' + link.fragment} "
"${link.fragment == null ? '' : '#' + link.fragment} "
"(${link.destination.statusDescription}"
"${!link.destination.isBroken && link.breaksAnchor
? ' but missing anchor'
: ''}"
"${!link.destination.isBroken && link.breaksAnchor ? ' but missing anchor' : ''}"
")");
if (link.destination.isRedirected) {
print(" - redirect path:");
Expand Down

0 comments on commit 08e3a0c

Please sign in to comment.