summaryrefslogtreecommitdiff
path: root/local.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-11-10 12:30:15 +0000
committerNick White <git@njw.name>2020-11-10 12:30:15 +0000
commit33f1726a4c9f8013dcde39e644281059d9766bc4 (patch)
tree46e7921a0c5959d072886368665011adf53b62e1 /local.go
parentad7aaf490e78e969bb5495dfda06a33d2a176aec (diff)
gofmt
Diffstat (limited to 'local.go')
-rw-r--r--local.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/local.go b/local.go
index 0ccc761..e5d9bef 100644
--- a/local.go
+++ b/local.go
@@ -27,7 +27,7 @@ const storageId = "storage"
type LocalConn struct {
// these should be set before running Init(), or left to defaults
TempDir string
- Logger *log.Logger
+ Logger *log.Logger
}
// MinimalInit does the bare minimum initialisation
@@ -184,12 +184,12 @@ func (a *LocalConn) DelFromQueue(url string, handle string) error {
// store the joining of part before and part after handle
var complete string
- if len(s) >= len(handle) + 1 {
+ if len(s) >= len(handle)+1 {
if i > 0 {
complete = s[:i]
}
// the '+1' is for the newline character
- complete += s[i + len(handle) + 1:]
+ complete += s[i+len(handle)+1:]
}
f, err := os.Create(filepath.Join(a.TempDir, url))