[vhffs-dev] [2094] next replaced to return due to sub'ification

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2094
Author:   gradator
Date:     2012-03-02 22:25:02 +0100 (Fri, 02 Mar 2012)
Log Message:
-----------
next replaced to return due to sub'ification

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Robots/Group.pm
    trunk/vhffs-api/src/Vhffs/Robots/User.pm

Modified: trunk/vhffs-api/src/Vhffs/Robots/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2012-03-02 20:55:43 UTC (rev 2093)
+++ trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2012-03-02 21:25:02 UTC (rev 2094)
@@ -188,7 +188,7 @@
 
 	# Only set quota if filesystem quota is not currently set
 	my (undef,$softblocks,$hardblocks,undef,undef,$softinodes,$hardinodes,undef) = Quota::query($dev, $group->get_gid, 1);
-	next if defined $softblocks and defined $hardblocks and defined $softinodes and defined $hardinodes
+	return 1 if defined $softblocks and defined $hardblocks and defined $softinodes and defined $hardinodes
 	  and $softblocks == 1 and $hardblocks == 0
 	  and $softinodes == 1 and $hardinodes == 0;
 

Modified: trunk/vhffs-api/src/Vhffs/Robots/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/User.pm	2012-03-02 20:55:43 UTC (rev 2093)
+++ trunk/vhffs-api/src/Vhffs/Robots/User.pm	2012-03-02 21:25:02 UTC (rev 2094)
@@ -181,7 +181,7 @@
 
 	# Only set quota if filesystem quota is not currently set
 	my (undef,$softblocks,$hardblocks,undef,undef,$softinodes,$hardinodes,undef) = Quota::query($dev, $user->get_gid, 1);
-	next if defined $softblocks and defined $hardblocks and defined $softinodes and defined $hardinodes
+	return 1 if defined $softblocks and defined $hardblocks and defined $softinodes and defined $hardinodes
 	  and $softblocks == 1 and $hardblocks == 0
 	  and $softinodes == 1 and $hardinodes == 0;
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/