aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git_misc.go2
-rw-r--r--handle_repo_raw.go2
-rw-r--r--handle_repo_tree.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/git_misc.go b/git_misc.go
index 3aded4f..01e1191 100644
--- a/git_misc.go
+++ b/git_misc.go
@@ -2,9 +2,9 @@ package main
import (
"errors"
+ "io"
"path/filepath"
"strings"
- "io"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
diff --git a/handle_repo_raw.go b/handle_repo_raw.go
index 811fea8..5693660 100644
--- a/handle_repo_raw.go
+++ b/handle_repo_raw.go
@@ -49,7 +49,7 @@ func handle_repo_raw(w http.ResponseWriter, r *http.Request) {
return
}
if len(raw_path_spec) != 0 && raw_path_spec[len(raw_path_spec)-1] == '/' {
- http.Redirect(w, r, "../" + path_spec, http.StatusSeeOther)
+ http.Redirect(w, r, "../"+path_spec, http.StatusSeeOther)
return
}
file_contents, err := file.Contents()
diff --git a/handle_repo_tree.go b/handle_repo_tree.go
index 1ef7179..2c1c31e 100644
--- a/handle_repo_tree.go
+++ b/handle_repo_tree.go
@@ -54,7 +54,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request) {
return
}
if len(raw_path_spec) != 0 && raw_path_spec[len(raw_path_spec)-1] == '/' {
- http.Redirect(w, r, "../" + path_spec, http.StatusSeeOther)
+ http.Redirect(w, r, "../"+path_spec, http.StatusSeeOther)
return
}
file_contents, err := file.Contents()