Skip to content

Commit 8a61dbe

Browse files
committed
Micro optimisation
1 parent 69c608c commit 8a61dbe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/watch/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ func EntryPoint(root *cli.Command) {
182182
if err != nil {
183183
return 1, err
184184
}
185+
config_paths := utils.Map(resolve_path, args[2:])
185186
if err = watch_for_kitty_config_changes(
186187
func() error { return signal_kitty_to_reload_config(kitty_pid) },
187-
time.Millisecond*time.Duration(debounce_time_ms), args[2:]); err != nil {
188+
time.Millisecond*time.Duration(debounce_time_ms), config_paths); err != nil {
188189
return 1, err
189190
}
190191
return 0, nil

0 commit comments

Comments
 (0)