MCPcopy Create free account
hub / github.com/mscdex/ssh2 / nextKey

Method nextKey

lib/agent.js:1077–1084  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1075 }
1076 }
1077 nextKey() {
1078 if (this[SYM_AGENT_KEYS] === null
1079 || ++this[SYM_AGENT_KEYS_IDX] >= this[SYM_AGENT_KEYS].length) {
1080 return false;
1081 }
1082
1083 return this[SYM_AGENT_KEYS][this[SYM_AGENT_KEYS_IDX]];
1084 }
1085 currentKey() {
1086 if (this[SYM_AGENT_KEYS] === null
1087 || this[SYM_AGENT_KEYS_IDX] >= this[SYM_AGENT_KEYS].length) {

Callers 1

tryNextAgentKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected