forked from extern/nushell
return value::int instead of value::record in history session
(#7049)
* return value::int instead of value::record * clippy
This commit is contained in:
parent
e18fb13616
commit
53a9264b67
@ -33,11 +33,6 @@ impl Command for HistorySession {
|
||||
call: &Call,
|
||||
_input: PipelineData,
|
||||
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
|
||||
Ok(Value::Record {
|
||||
cols: vec!["session-id".into()],
|
||||
vals: vec![Value::int(engine_state.history_session_id, call.head)],
|
||||
span: call.head,
|
||||
}
|
||||
.into_pipeline_data())
|
||||
Ok(Value::int(engine_state.history_session_id, call.head).into_pipeline_data())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user