improv: simplify
This commit is contained in:
parent
b553630f2a
commit
e8ecedb36d
1 changed files with 1 additions and 6 deletions
|
|
@ -8,7 +8,6 @@ import {
|
|||
import { renderChatMessage } from "../../util/messageContent";
|
||||
import { getCleanUriPath } from "../../util/uri";
|
||||
import { extractPathsFromCodeBlocks } from "../utils/extractPathsFromCodeBlocks";
|
||||
import { RULES_MARKDOWN_FILENAME } from "./constants";
|
||||
|
||||
/**
|
||||
* Checks if a path matches any of the provided globs
|
||||
|
|
@ -90,11 +89,7 @@ const isFileInDirectory = (
|
|||
* Checks if a rule is a root-level rule (.continue directory or no file path)
|
||||
*/
|
||||
const isRootLevelRule = (rule: RuleWithSource): boolean => {
|
||||
return (
|
||||
!rule.ruleFile ||
|
||||
rule.ruleFile.startsWith(".continue/") ||
|
||||
rule.ruleFile === `.continue/${RULES_MARKDOWN_FILENAME}`
|
||||
);
|
||||
return !rule.ruleFile || rule.ruleFile.startsWith(".continue/");
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue