diff options
| author | Nick White <git@njw.name> | 2020-10-20 16:15:29 +0100 | 
|---|---|---|
| committer | Nick White <git@njw.name> | 2020-10-20 16:15:29 +0100 | 
| commit | d06fe7be371041cb7698a1562a2c7153c8c8f20b (patch) | |
| tree | 28fad1fa063c54f41a2d06760799040a982cf0d3 | |
| parent | 85a955c689f2c64bd5fb98635052684db5ca9e6f (diff) | |
Hopefully fix off-by-one error causing errors with local bookpipeline
| -rw-r--r-- | local.go | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -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))  | 
