cleanup
This commit is contained in:
parent
0e914c629e
commit
55b8218860
3 changed files with 2 additions and 3 deletions
|
|
@ -126,7 +126,6 @@ func (s *Scanner) Scan(file string) (filename, text string, err error) {
|
||||||
log.Debugf("%s %v", txtCmd.Path, txtCmd.Args)
|
log.Debugf("%s %v", txtCmd.Path, txtCmd.Args)
|
||||||
txt, err := timeout(txtCmd, s.timeout)
|
txt, err := timeout(txtCmd, s.timeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debugf("killed", err)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(txt) <= 2 {
|
if len(txt) <= 2 {
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
<td>File</td>
|
<td>File</td>
|
||||||
<td><div class="btn-group">
|
<td><div class="btn-group">
|
||||||
{{if $item.Scan}}
|
{{if $item.Scan}}
|
||||||
<a href="#" class="btn btn-sm btn-warning">Scanning..</a>
|
<a href="#" class="btn btn-sm btn-warning">Scanning</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if not $item.Flag}}
|
{{if not $item.Flag}}
|
||||||
<a href="/index{{$item.Abs}}" class="btn btn-sm btn-success">Index</a>
|
<a href="/index{{$item.Abs}}" class="btn btn-sm btn-success">Index</a>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
</ol>
|
</ol>
|
||||||
<div class="btn-group btn-breadcrumb">
|
<div class="btn-group btn-breadcrumb">
|
||||||
{{if .Data.Scan}}
|
{{if .Data.Scan}}
|
||||||
<a href="#" class="btn btn-sm btn-warning">Scanning..</a>
|
<a href="#" class="btn btn-sm btn-warning">Scanning</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if not .Data.Flag}}
|
{{if not .Data.Flag}}
|
||||||
<a href="/index{{.Data.Name}}" class="btn btn-sm btn-success">Index</a>
|
<a href="/index{{.Data.Name}}" class="btn btn-sm btn-success">Index</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue