return value::int instead of value::record in history session (#7049)

* return value::int instead of value::record

* clippy
This commit is contained in:
Darren Schroeder 2022-11-09 16:20:52 -06:00 committed by GitHub
parent e18fb13616
commit 53a9264b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}
}