Skip to content

Commit

Permalink
kdump: Drop unnecessary null check
Browse files Browse the repository at this point in the history
We already ascertained that `error` is defined at that point. Avoids a
coverage complaint.
  • Loading branch information
martinpitt committed Oct 24, 2023
1 parent 7baca28 commit 542e4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kdump/kdump-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const KdumpSettingsModal = ({ settings, initialTarget, handleSave }) => {
}>
{error && <ModalError isExpandable
dialogError={error.message || error}
dialogErrorDetail={error?.details} />}
dialogErrorDetail={error.details} />}
<Form id="kdump-settings-form" isHorizontal>
<FormGroup fieldId="kdump-settings-location" label={_("Location")}>
<FormSelect key="location" onChange={(_, val) => changeStorageLocation(val)}
Expand Down

0 comments on commit 542e4b7

Please sign in to comment.