Skip to content

Commit

Permalink
Apply sourcery optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 7, 2022
1 parent 7c09ebb commit fafe35f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pyhf/tensor/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ def get_backend(default: bool = False) -> tuple[TensorBackend, Optimizer]:
Returns:
backend, optimizer
"""
if default:
return this.state['default']

return this.state['current']
return this.state["default"] if default else this.state["current"]


_default_backend: TensorBackend = BackendRetriever.numpy_backend()
Expand Down

0 comments on commit fafe35f

Please sign in to comment.