The interpret_directive function either returns an operation list or
throws an exception, so testing the returned value is silly. This code
had been carried over from previous refactoring when the return value of
read_directive_file was changed to an operation list; it had been a flag
nominally, but was actually a constant in read_directive_file.
check_replay($oplist, $sig_info->{sig_creation});
- if ($oplist) {
- # do the work
- execute_commands($oplist);
+ # do the work
+ execute_commands($oplist);
- # report success
- if (!$directive_only) {
- success_upload($sig_file, $upload_file, $directive_file);
- } else {
- success_directive($directive_file);
- }
+ # report success
+ if (!$directive_only) {
+ success_upload($sig_file, $upload_file, $directive_file);
+ } else {
+ success_directive($directive_file);
}
+
$complete = 1;
};