mirror of
https://github.com/stablyai/orca.git
synced 2026-09-26 16:02:43 +00:00
style(scripts): use .at(-1) in the dot-segment fold
oxlint's prefer-at rule; the repo-wide lint gate is an error, not a warning. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
@@ -83,7 +83,7 @@ export function hasNodeModulesBinSpawn(contents) {
|
||||
if (segment === '.' || segment === '') {
|
||||
continue
|
||||
}
|
||||
if (segment === '..' && folded.length && folded[folded.length - 1] !== '..') {
|
||||
if (segment === '..' && folded.length && folded.at(-1) !== '..') {
|
||||
folded.pop()
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user