ソースを参照

GUI: minor code cleanup

Herman Schoenfeld 7 年 前
コミット
077865dccb
1 ファイル変更2 行追加3 行削除
  1. 2 3
      src/gui/wizards/operations/UWIZOperationFee_Custom.pas

+ 2 - 3
src/gui/wizards/operations/UWIZOperationFee_Custom.pas

@@ -92,13 +92,12 @@ function TWIZOperationFee_Custom.Validate(out message: ansistring): boolean;
 begin
 begin
   if (Length(Model.Account.SelectedAccounts) > 1) AND (Fee = 0) then begin
   if (Length(Model.Account.SelectedAccounts) > 1) AND (Fee = 0) then begin
     message := 'Insufficient fee for multiple operations. Zero fees only allowed for single operation.';
     message := 'Insufficient fee for multiple operations. Zero fees only allowed for single operation.';
-    Result := False;
+    Exit(false);
   end;
   end;
 
 
   if Length(TCoreTool.GetSignerCandidates(Length(Model.Account.SelectedAccounts), Model.Fee.SingleOperationFee, Model.Account.SelectedAccounts)) = 0 then begin
   if Length(TCoreTool.GetSignerCandidates(Length(Model.Account.SelectedAccounts), Model.Fee.SingleOperationFee, Model.Account.SelectedAccounts)) = 0 then begin
     message := 'No Valid Signer Account Was Found With The Current Requirements.';
     message := 'No Valid Signer Account Was Found With The Current Requirements.';
-    Result := False;
-    Exit;
+    Exit(false);
   end;
   end;
 end;
 end;