Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
f81e9422
Commit
f81e9422
authored
Nov 17, 2017
by
Uwe Schulzweida
Browse files
Change if/else to ternary.
parent
5e99524f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Exprf.cc
View file @
f81e9422
...
...
@@ -268,11 +268,8 @@ void *Expr(void *argument)
operatorInputArg
(
cdoOperatorEnter
(
operatorID
));
char
*
exprs
=
NULL
;
if
(
READS_COMMAND_LINE
(
operatorID
)
)
exprs
=
exprs_from_arg
(
operatorArgv
()[
0
]);
else
exprs
=
exprs_from_file
(
operatorArgv
()[
0
]);
char
*
exprs
=
READS_COMMAND_LINE
(
operatorID
)
?
exprs_from_arg
(
operatorArgv
()[
0
])
:
exprs_from_file
(
operatorArgv
()[
0
]);
if
(
cdoVerbose
)
cdoPrint
(
exprs
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment