Refactor Format
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Base.pm
index d63ddee..3f6416c 100644 (file)
@@ -18,7 +18,7 @@ sub process{
   my $logger = get_logger;
   $logger->debug("Taking job $name...");
   open my $file, ">>$dir/$name/meta.yml";
-  if (flock my $file, LOCK_EX|LOCK_NB){
+  if (flock $file, LOCK_EX|LOCK_NB){
        $logger->debug("Successfully taken job $name, executing callback");
        $cb->("$dir/$name");
   } else {
This page took 0.010248 seconds and 4 git commands to generate.