1 |
commit: 303356daec48d7c7ea25541439cbb79cbfa281ff |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 17 15:01:59 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 17 15:14:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=303356da |
7 |
|
8 |
company-ebuild.el: company-ebuild--find-eclass-files - remove redundant check |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
company-ebuild.el | 12 +++++------- |
13 |
1 file changed, 5 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/company-ebuild.el b/company-ebuild.el |
16 |
index 9c857e2..7a1b51a 100644 |
17 |
--- a/company-ebuild.el |
18 |
+++ b/company-ebuild.el |
19 |
@@ -142,15 +142,13 @@ FILE-PATH is the location from which we start searching for repository root." |
20 |
(file-exists-p file-path) |
21 |
(locate-dominating-file file-path "profiles/repo_name"))) |
22 |
|
23 |
-(defun company-ebuild--find-eclass-files (file-path) |
24 |
+(defun company-ebuild--find-eclass-files (repo-root) |
25 |
"Return found Eclass files. |
26 |
|
27 |
-FILE-PATH is the location from which we start searching for Eclass files." |
28 |
- (let ((repo-root |
29 |
- (company-ebuild--find-repo-root file-path))) |
30 |
- (and repo-root |
31 |
- (directory-files |
32 |
- (expand-file-name "eclass" repo-root) t ".*\\.eclass" t)))) |
33 |
+REPO-ROOT is the location from which we start searching for Eclass files." |
34 |
+ (and repo-root |
35 |
+ (directory-files |
36 |
+ (expand-file-name "eclass" repo-root) t ".*\\.eclass" t))) |
37 |
|
38 |
(defun company-ebuild--regenerate-dynamic-keywords-eclasses () |
39 |
"Set new content of the ‘company-ebuild--dynamic-keywords’ Eclass variables." |