Skip to content

Commit

Permalink
Remove redundant condition
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gera <[email protected]>
  • Loading branch information
arielge authored and perlitz committed Nov 28, 2023
1 parent ed8ec82 commit 77e6e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unitxt/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def process(self, stream: Stream, stream_name: str = None) -> Generator:
except:
instance_score = {"score": None, "score_name": self.main_score}

if isinstance(self.main_score, str) and self.main_score is not None:
if isinstance(self.main_score, str):
instance_score[self.main_score] = None

instance["score"]["instance"].update(instance_score)
Expand Down

0 comments on commit 77e6e3d

Please sign in to comment.