Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Apr 25, 2018
1 parent 97e354c commit e8c256d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions .github/CHECKLIST.md
@@ -1,7 +1,7 @@
# Repository checklist

- github
- [ ] labels
- [x] labels
- `#5319e7`, `help wanted`
- `#b60205`, `status:blocked`
- `#b60205`, `status:declined`
Expand All @@ -12,22 +12,22 @@
- `#006b75`, `type:feature`
- `#bfe5bf`, `type:refactoring`
- `#009800`, `type:task`
- [ ] milestones
- [ ] projects
- [ ] disable wiki
- [ ] short description with emoji
- [x] milestones
- [x] projects
- [x] disable wiki
- [x] short description with emoji
- [ ] topics
- [ ] license
- [x] license
- **MIT**
- readme
- [ ] header with google analytics and short description
- [ ] patreon badge
- [x] header with google analytics and short description
- [x] patreon badge
- [ ] travis badge
- [ ] scrutinizer badge
- [ ] coveralls badge
- [ ] godoc badge
- [ ] license badge
- [ ] footer with feedback
- [x] license badge
- [x] footer with feedback
- sections
- [ ] quick start
- [ ] installation
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -15,14 +15,14 @@ $ check urls https://kamil.samigullin.info/
# β”œβ”€β”€β”€ [200] https://howilive.ru/en/
# β”œβ”€β”€β”€ [200] https://github.com/kamilsk
# β”œβ”€β”€β”€ [200] https://twitter.com/ikamilsk
# β”œβ”€β”€β”€ [999] https://www.linkedin.com/in/kamilsk/en
# └─── [200] https://kamil.samigullin.info/ru/
# β”œβ”€β”€β”€ [200] https://kamil.samigullin.info/ru/
# └─── [999] https://www.linkedin.com/in/kamilsk
# [200] https://kamil.samigullin.info/ru/
# β”œβ”€β”€β”€ [200] https://howilive.ru/
# β”œβ”€β”€β”€ [200] https://github.com/kamilsk
# β”œβ”€β”€β”€ [200] https://twitter.com/ikamilsk
# β”œβ”€β”€β”€ [999] https://www.linkedin.com/in/kamilsk
# └─── [200] https://kamil.samigullin.info/
# β”œβ”€β”€β”€ [200] https://kamil.samigullin.info/
# └─── [999] https://www.linkedin.com/in/kamilsk
```

## Installation
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions http/availability/printer.go
Expand Up @@ -35,15 +35,15 @@ func (p *Printer) Print(w io.Writer) {
pages := pagesByLocation(report.Pages())
sort.Sort(pages)
for _, page := range pages {
p.colorize(page.StatusCode).Fprintf(w, "[%d] %s \n", page.StatusCode, page.Location)
p.colorize(page.StatusCode).Fprintf(w, "[%d] %s\n", page.StatusCode, page.Location)
last := len(page.Links) - 1
sort.Sort(linksByStatusCode(page.Links))
for i, link := range page.Links {
if i == last {
p.colorize(link.StatusCode).Fprintf(w, "└─── [%d] %s \n", link.StatusCode, link.Location)
p.colorize(link.StatusCode).Fprintf(w, "└─── [%d] %s\n", link.StatusCode, link.Location)
continue
}
p.colorize(link.StatusCode).Fprintf(w, "β”œβ”€β”€β”€ [%d] %s \n", link.StatusCode, link.Location)
p.colorize(link.StatusCode).Fprintf(w, "β”œβ”€β”€β”€ [%d] %s\n", link.StatusCode, link.Location)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion http/availability/report.go
Expand Up @@ -81,7 +81,7 @@ func (r *Report) Get() error {
page := r.findPage(e.Request.URL)
page.Links = append(page.Links, link)

// TODO it can return
// TODO it can return error
// &errors.errorString{s:""}
// &errors.errorString{s:"URL already visited"}
e.Request.Visit(href)
Expand Down

0 comments on commit e8c256d

Please sign in to comment.