summaryrefslogtreecommitdiff
path: root/local.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-10-20 16:15:29 +0100
committerNick White <git@njw.name>2020-10-20 16:15:29 +0100
commitd06fe7be371041cb7698a1562a2c7153c8c8f20b (patch)
tree28fad1fa063c54f41a2d06760799040a982cf0d3 /local.go
parent85a955c689f2c64bd5fb98635052684db5ca9e6f (diff)
Hopefully fix off-by-one error causing errors with local bookpipeline
Diffstat (limited to 'local.go')
-rw-r--r--local.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/local.go b/local.go
index e112eed..0aa8d1f 100644
--- a/local.go
+++ b/local.go
@@ -187,9 +187,9 @@ func (a *LocalConn) DelFromQueue(url string, handle string) error {
// the '+2' is 1 for newline character + 1 to move beyond handle
if len(s) >= len(handle) + 2 {
if i > 0 {
- complete = s[0:i]
+ complete = s[:i]
}
- complete += s[i + len(handle) + 2:len(s)]
+ complete += s[i + len(handle) + 2:]
}
f, err := os.Create(filepath.Join(a.TempDir, url))