mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-20 15:25:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -86,9 +86,7 @@ function substituteVariables(
|
||||
// (replacer fn treats $ literally), and (2) double-substitution when user
|
||||
// content happens to contain {{varName}} matching a later variable.
|
||||
return template.replace(/\{\{(\w+)\}\}/g, (match, key: string) =>
|
||||
Object.hasOwn(variables, key)
|
||||
? variables[key]!
|
||||
: match,
|
||||
Object.hasOwn(variables, key) ? variables[key]! : match,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user