forked from extern/nushell
Formatting.
This commit is contained in:
parent
ec2e35ad81
commit
0373006710
@ -70,9 +70,9 @@ pub fn config(
|
||||
|
||||
if let Some(v) = get {
|
||||
let key = v.to_string();
|
||||
let value = result.get(&key).ok_or_else(|| {
|
||||
ShellError::labeled_error("Missing key in config", "key", v.tag())
|
||||
})?;
|
||||
let value = result
|
||||
.get(&key)
|
||||
.ok_or_else(|| ShellError::labeled_error("Missing key in config", "key", v.tag()))?;
|
||||
|
||||
let mut results = VecDeque::new();
|
||||
|
||||
|
@ -36,12 +36,13 @@ fn first(
|
||||
FirstArgs { rows }: FirstArgs,
|
||||
context: RunnableContext,
|
||||
) -> Result<OutputStream, ShellError> {
|
||||
|
||||
let rows_desired = if let Some(quantity) = rows {
|
||||
*quantity
|
||||
} else {
|
||||
1
|
||||
};
|
||||
|
||||
Ok(OutputStream::from_input(context.input.values.take(rows_desired)))
|
||||
Ok(OutputStream::from_input(
|
||||
context.input.values.take(rows_desired),
|
||||
))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user