]> git.proxmox.com Git - pve-cluster.git/commitdiff
style nit: use post-if not and'ed expression
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 May 2020 12:45:03 +0000 (14:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 May 2020 12:45:08 +0000 (14:45 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm

index 7a4bce07169c15cfe982ea34f2c238ad6ee4abf7..c3f2725a5954d638e728253396d5260d511fc416 100644 (file)
@@ -113,7 +113,7 @@ __PACKAGE__->register_method ({
     code => sub {
        my ($param) = @_;
 
-       -f $clusterconf && die "cluster config '$clusterconf' already exists\n";
+       die "cluster config '$clusterconf' already exists\n" if -f $clusterconf;
 
        my $rpcenv = PVE::RPCEnvironment::get();
        my $authuser = $rpcenv->get_user();