Skip to content

Commit

Permalink
revert unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
csessh committed Nov 9, 2024
1 parent 3ea8d2a commit 82a0a24
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os/exec"
"path/filepath"
"runtime"
"strings"

"github.com/pelletier/go-toml"
"github.com/pkg/errors"
Expand Down Expand Up @@ -100,10 +99,6 @@ func (cfg *Config) Load(file string) error {
}
var snippetdirs []string
for _, dir := range cfg.General.SnippetDirs {
if !strings.HasSuffix(dir, "/") {
dir = dir + "/"
}

snippetdirs = append(snippetdirs, dir) // note the = instead of :=
}
cfg.General.SnippetDirs = snippetdirs
Expand Down

0 comments on commit 82a0a24

Please sign in to comment.