Expander: Fix dead nested assignment

Fix value stored to 'status' is never read.
Pointed out by Clang Static Analyzer.

Change-Id: I0bbeafb74168d566128b53f8ad40e71218c78c45
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3473
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Murai Takashi
2020-12-09 20:38:41 +00:00
committed by Jérôme Duval
parent 5d1042057b
commit b9e10b0796
+1 -1
View File
@@ -54,7 +54,7 @@ ExpanderThread::ThreadStartup()
if ((status = GetDataStore()->FindRef("srcRef", &srcRef)) != B_OK)
return status;
if ((status = GetDataStore()->FindRef("destRef", &destRef)) == B_OK) {
if (GetDataStore()->FindRef("destRef", &destRef) == B_OK) {
BPath path(&destRef);
chdir(path.Path());
}