diff options
Diffstat (limited to 'buildstream/_workspaces.py')
-rw-r--r-- | buildstream/_workspaces.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/buildstream/_workspaces.py b/buildstream/_workspaces.py index da430b540..8b7458771 100644 --- a/buildstream/_workspaces.py +++ b/buildstream/_workspaces.py @@ -58,13 +58,8 @@ class Workspace(): @classmethod def from_yaml_node(cls, node, project): path = _yaml.node_get(node, str, 'path') - last_successful = _yaml.node_get(node, str, 'last_successful', default_value='') - running_files = _yaml.node_get(node, dict, 'running_files', default_value={}) - - if last_successful == '': - last_successful = None - if running_files == {}: - running_files = None + last_successful = _yaml.node_get(node, str, 'last_successful', default_value=None) + running_files = _yaml.node_get(node, dict, 'running_files', default_value=None) return cls(path, project, last_successful, running_files) |