summaryrefslogtreecommitdiff
path: root/local.go
diff options
context:
space:
mode:
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))