Rename variable to avoid collision with the path package
Tommi Virtanen committed
Mar 11, 2015 at 11:10 UTC
1064d5e01f88f181fbd0ce97171d121e0e68170a
1 file changed
+4
-4
repo/fsrepo/fsrepo.go
+4
-4
@@ -126,23 +126,23 @@ func initConfig(path string, conf *config.Config) error {
126
127
// Init initializes a new FSRepo at the given path with the provided config.
128
// TODO add support for custom datastores.
129
-func Init(path string, conf *config.Config) error {
129
+func Init(repoPath string, conf *config.Config) error {
130
131
// packageLock must be held to ensure that the repo is not initialized more
132
// than once.
133
packageLock.Lock()
134
defer packageLock.Unlock()
135
136
- if isInitializedUnsynced(path) {
136
+ if isInitializedUnsynced(repoPath) {
137
return nil
138
}
139
140
- if err := initConfig(path, conf); err != nil {
140
+ if err := initConfig(repoPath, conf); err != nil {
141
return err
142
}
143
144
for _, b := range componentBuilders() {
145
- if err := b.Init(path, conf); err != nil {
145
+ if err := b.Init(repoPath, conf); err != nil {
146
return err
147
}
148
}