@@ -90,11 +90,11 @@ function! s:connections.rename_db(db) abort
90
90
endif
91
91
92
92
let connections = self .read ()
93
- let parent = self .find_group (a: db .path , connections)
93
+ let target_group = self .find_group (a: db .path , connections)
94
94
95
95
let idx = 0
96
96
let entry = {}
97
- for conn in parent
97
+ for conn in target_group
98
98
if conn.name == ? a: db .name && db_ui#resolve (conn.url) == ? a: db .url
99
99
let entry = conn
100
100
break
@@ -127,8 +127,8 @@ function! s:connections.rename_db(db) abort
127
127
return db_ui#notifications#error (v: exception )
128
128
endtry
129
129
130
- call remove (parent , idx)
131
- call insert (parent , {' name' : name, ' url' : url }, idx)
130
+ call remove (target_group , idx)
131
+ call insert (target_group , {' name' : name, ' url' : url }, idx)
132
132
return self .write (connections)
133
133
endfunction
134
134
@@ -175,11 +175,11 @@ function! s:connections.rename_group(db) abort
175
175
endif
176
176
177
177
let connections = self .read ()
178
- let parent = self .find_group (a: db .path , connections)
178
+ let target_group = self .find_group (a: db .path , connections)
179
179
180
180
let idx = 0
181
181
let entry = {}
182
- for conn in parent
182
+ for conn in target_group
183
183
if conn.name == ? a: db .name && has_key (conn, ' connections' )
184
184
let entry = conn
185
185
break
@@ -201,8 +201,8 @@ function! s:connections.rename_group(db) abort
201
201
return db_ui#notifications#error (v: exception )
202
202
endtry
203
203
204
- call remove (parent , idx)
205
- call insert (parent , {' name' : name, ' connections' : entry.connections}, idx)
204
+ call remove (target_group , idx)
205
+ call insert (target_group , {' name' : name, ' connections' : entry.connections}, idx)
206
206
return self .write (connections)
207
207
endfunction
208
208
0 commit comments