Skip to content

Commit

Permalink
Removing unnecessary return statement in cirq-core/cirq/circuits/mome…
Browse files Browse the repository at this point in the history
…nt.py (#6004)
  • Loading branch information
joesho112358 committed Feb 12, 2023
1 parent a3520bc commit 3dc9629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cirq-core/cirq/circuits/moment.py
Expand Up @@ -148,8 +148,7 @@ def operation_at(self, qubit: raw_types.Qid) -> Optional['cirq.Operation']:
"""
if self.operates_on([qubit]):
return self.__getitem__(qubit)
else:
return None
return None

def with_operation(self, operation: 'cirq.Operation') -> 'cirq.Moment':
"""Returns an equal moment, but with the given op added.
Expand Down

0 comments on commit 3dc9629

Please sign in to comment.