mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
git_config: GetBoolean should return bool
Test: tox Change-Id: Ifc0dc089deef5a3b396d889c9ebfcf8d4f007bf2 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390360 Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com> Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Daniel Kutik <daniel.kutik@lavawerk.com>
This commit is contained in:
parent
3d58d219cb
commit
49c9b06838
@ -180,7 +180,7 @@ class GitConfig:
|
|||||||
config_dict[key] = self.GetString(key)
|
config_dict[key] = self.GetString(key)
|
||||||
return config_dict
|
return config_dict
|
||||||
|
|
||||||
def GetBoolean(self, name: str) -> Union[str, None]:
|
def GetBoolean(self, name: str) -> Union[bool, None]:
|
||||||
"""Returns a boolean from the configuration file.
|
"""Returns a boolean from the configuration file.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
Loading…
Reference in New Issue
Block a user