go fmt code
This commit is contained in:
parent
def9f7bccf
commit
e7adec0988
1 changed files with 14 additions and 14 deletions
|
@ -6,8 +6,8 @@ import (
|
|||
"labix.org/v2/mgo/bson"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"strings"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type chapter struct {
|
||||
|
@ -99,14 +99,14 @@ func chapterList(e *epub.Epub, file string, id string, base string) (string, str
|
|||
}
|
||||
|
||||
/* if is the same chapter check the previous */
|
||||
i := activeIndx-1
|
||||
i := activeIndx - 1
|
||||
for i >= 0 && strings.Contains(chapters[i].Link, "#") {
|
||||
i--
|
||||
}
|
||||
if i >= 0 {
|
||||
prev = chapters[i].Link
|
||||
}
|
||||
i = activeIndx+1
|
||||
i = activeIndx + 1
|
||||
for i < len(chapters) && strings.Contains(chapters[i].Link, "#") {
|
||||
i++
|
||||
}
|
||||
|
|
Reference in a new issue