Przeglądaj źródła

lint issues

Signed-off-by: Andrew Kutta <andrew.kutta@gmail.com>
Andrew Kutta 6 lat temu
rodzic
commit
0c3ce4a639
2 zmienionych plików z 3 dodań i 4 usunięć
  1. 1 1
      cmd/hercules/root.go
  2. 2 3
      internal/plumbing/tree_diff.go

+ 1 - 1
cmd/hercules/root.go

@@ -54,7 +54,7 @@ func (writer oneLineWriter) Write(p []byte) (n int, err error) {
 	return
 }
 
-func loadSshIdentity(sshIdentity string) *ssh2.PublicKeys {
+func loadSSHIdentity(sshIdentity string) *ssh2.PublicKeys {
 	fmt.Fprint(os.Stderr, "using identifiy file...\r")
 	pem, err := ioutil.ReadFile(sshIdentity)
 	if err != nil {

+ 2 - 3
internal/plumbing/tree_diff.go

@@ -47,9 +47,8 @@ const (
 	// allLanguages denotes passing all files in.
 	allLanguages = "all"
 
-	// ConfigTreeDiffFilteredRegexes is the name of the configuration option
-	// (TreeDiff.Configure()) which allows to set whitelisted path prefixes -
-	// directories or complete file names.
+	// ConfigTreeDiffFilteredRegex is the name of the configuration option
+	// (TreeDiff.Configure()) which will only compute differences based on matching this regex
 	ConfigTreeDiffFilterRegex = "TreeDiff.FilteredRegexes"
 )