Add formats GCCGO, GOLANG, HASKELL
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon.pm
index 4c3d49294d6c1ff8b109b1500688673c24230e4d..1c8ceceda53f8cd4d76e9084af41bbcdc3cde83c 100644 (file)
@@ -23,6 +23,9 @@ use constant PAGE_SIZE => 10;
 use constant FORMAT_EXTENSION => {
        C => 'c',
        CPP => 'cpp',
+       GCCGO => 'go',
+       GOLANG => 'go',
+       HASKELL => 'hs',
        MONO => 'cs',
        JAVA => 'java',
        PASCAL => 'pas',
@@ -140,7 +143,7 @@ sub process{
        $jobr->update({
                result => $meta->{result},
                result_text => $meta->{result_text},
-               results => encode_json $meta->{results},
+               ($meta->{results} ? (results => encode_json $meta->{results}) : ()),
                $errors ? (errors => $errors) : ()
        });
 
This page took 0.010267 seconds and 4 git commands to generate.