Commit f81e9422 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Change if/else to ternary.

parent 5e99524f
...@@ -268,11 +268,8 @@ void *Expr(void *argument) ...@@ -268,11 +268,8 @@ void *Expr(void *argument)
operatorInputArg(cdoOperatorEnter(operatorID)); operatorInputArg(cdoOperatorEnter(operatorID));
char *exprs = NULL; char *exprs = READS_COMMAND_LINE(operatorID) ?
if ( READS_COMMAND_LINE(operatorID) ) exprs_from_arg(operatorArgv()[0]) : exprs_from_file(operatorArgv()[0]);
exprs = exprs_from_arg(operatorArgv()[0]);
else
exprs = exprs_from_file(operatorArgv()[0]);
if ( cdoVerbose ) cdoPrint(exprs); if ( cdoVerbose ) cdoPrint(exprs);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment