diff --git a/jrnl/messages/MsgStyle.py b/jrnl/messages/MsgStyle.py index ee898fdb..666896b6 100644 --- a/jrnl/messages/MsgStyle.py +++ b/jrnl/messages/MsgStyle.py @@ -90,4 +90,4 @@ class MsgStyle(Enum): @property def box_title(self) -> MsgText: - return self.value.get("box_title", None) + return self.value.get("box_title") diff --git a/jrnl/override.py b/jrnl/override.py index 64a0fe86..bc85f47e 100644 --- a/jrnl/override.py +++ b/jrnl/override.py @@ -21,7 +21,7 @@ def apply_overrides(args: "Namespace", base_config: dict) -> dict: :return: Configuration to be used during runtime with the overrides applied :rtype: dict """ - overrides = vars(args).get("config_override", None) + overrides = vars(args).get("config_override") if not overrides: return base_config diff --git a/tests/lib/then_steps.py b/tests/lib/then_steps.py index 7eaf07d6..5ec75ad5 100644 --- a/tests/lib/then_steps.py +++ b/tests/lib/then_steps.py @@ -157,7 +157,7 @@ def config_var_on_disk(config_on_disk, journal_name, it_should, some_yaml): actual_slice = actual if type(actual) is dict: # `expected` objects formatted in yaml only compare one level deep - actual_slice = {key: actual.get(key, None) for key in expected.keys()} + actual_slice = {key: actual.get(key) for key in expected.keys()} assert (expected == actual_slice) == it_should