Skip to content

Commit bcb41dd

Browse files
FIX: LGTM warning: Variable defined multiple times
This assignment to 'patient_info' is unnecessary as it is redefined here before this value is used. https://lgtm.com/rules/1800095/
1 parent c3a0e98 commit bcb41dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/cmdline/dicomfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_paths(self):
7171
for study in dft.get_studies(self.dicom_path, self.followlinks):
7272
pd = paths.setdefault(study.patient_name_or_uid(), {})
7373
patient_info = 'patient information\n'
74-
patient_info = f'name: {study.patient_name}\n'
74+
patient_info += f'name: {study.patient_name}\n'
7575
patient_info += f'ID: {study.patient_id}\n'
7676
patient_info += f'birth date: {study.patient_birth_date}\n'
7777
patient_info += f'sex: {study.patient_sex}\n'

0 commit comments

Comments
 (0)