@@ -88,11 +88,11 @@ function! s:connections.rename_db(db) abort
88
88
endif
89
89
90
90
let connections = self .read ()
91
- let parent = self .find_group (a: db .path , connections)
91
+ let target_group = self .find_group (a: db .path , connections)
92
92
93
93
let idx = 0
94
94
let entry = {}
95
- for conn in parent
95
+ for conn in target_group
96
96
if conn.name == ? a: db .name && db_ui#resolve (conn.url) == ? a: db .url
97
97
let entry = conn
98
98
break
@@ -123,8 +123,8 @@ function! s:connections.rename_db(db) abort
123
123
return db_ui#notifications#error (v: exception )
124
124
endtry
125
125
126
- call remove (parent , idx)
127
- call insert (parent , {' name' : name, ' url' : url }, idx)
126
+ call remove (target_group , idx)
127
+ call insert (target_group , {' name' : name, ' url' : url }, idx)
128
128
return self .write (connections)
129
129
endfunction
130
130
@@ -171,11 +171,11 @@ function! s:connections.rename_group(db) abort
171
171
endif
172
172
173
173
let connections = self .read ()
174
- let parent = self .find_group (a: db .path , connections)
174
+ let target_group = self .find_group (a: db .path , connections)
175
175
176
176
let idx = 0
177
177
let entry = {}
178
- for conn in parent
178
+ for conn in target_group
179
179
if conn.name == ? a: db .name && has_key (conn, ' connections' )
180
180
let entry = conn
181
181
break
@@ -197,8 +197,8 @@ function! s:connections.rename_group(db) abort
197
197
return db_ui#notifications#error (v: exception )
198
198
endtry
199
199
200
- call remove (parent , idx)
201
- call insert (parent , {' name' : name, ' connections' : entry.connections}, idx)
200
+ call remove (target_group , idx)
201
+ call insert (target_group , {' name' : name, ' connections' : entry.connections}, idx)
202
202
return self .write (connections)
203
203
endfunction
204
204
0 commit comments