More linter fixes

This commit is contained in:
Kovid Goyal
2023-09-18 21:07:39 +05:30
parent 7faf216f9e
commit 1a32e62ebf
7 changed files with 14 additions and 15 deletions

View File

@@ -297,7 +297,9 @@ func (self *Collection) collect_files(left, right string) error {
if err != nil {
return err
}
err = walk(right, conf.Ignore_name, right_names, right_path_map, path_name_map)
if err = walk(right, conf.Ignore_name, right_names, right_path_map, path_name_map); err != nil {
return err
}
common_names := left_names.Intersect(right_names)
changed_names := utils.NewSet[string](common_names.Len())
for n := range common_names.Iterable() {

View File

@@ -627,11 +627,9 @@ func (self *Handler) dispatch_action(name, args string) error {
}
done = self.scroll_lines(amt) != 0
default:
npos := self.scroll_pos
npos := ScrollPos{}
if strings.Contains(args, `end`) {
npos = self.max_scroll_pos
} else {
npos = ScrollPos{}
}
done = npos != self.scroll_pos
self.scroll_pos = npos