Projects: don't respond with unnecessary declarative field
If the project isn't declarative, who cares about it in the response? After setting the `declfile` to an empty string, everything related to declarative- ness is wiped out, anyways.
This commit is contained in:
@ -49,12 +49,7 @@ subtest "Read project 'tests'" => sub {
|
||||
homepage => "",
|
||||
jobsets => [],
|
||||
name => "tests",
|
||||
owner => "root",
|
||||
declarative => {
|
||||
file => "",
|
||||
type => "",
|
||||
value => ""
|
||||
}
|
||||
owner => "root"
|
||||
});
|
||||
};
|
||||
|
||||
@ -136,12 +131,7 @@ subtest "Transitioning from declarative project to normal" => sub {
|
||||
homepage => "",
|
||||
jobsets => [],
|
||||
name => "tests",
|
||||
owner => "root",
|
||||
declarative => {
|
||||
file => "",
|
||||
type => "",
|
||||
value => ""
|
||||
}
|
||||
owner => "root"
|
||||
});
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user