PatchScriptBuilder: Remove unnecessary else-clauses
Change-Id: Ia6fca30672cacbb9fd36e05fe1e36fb41b2492e6
This commit is contained in:
@@ -522,7 +522,7 @@ class PatchScriptBuilder {
|
||||
MimeUtil2.UNKNOWN_MIME_TYPE,
|
||||
DisplayMethod.NONE,
|
||||
false);
|
||||
} else {
|
||||
}
|
||||
Text src =
|
||||
isCommitMsg
|
||||
? Text.forCommit(reader, within)
|
||||
@@ -547,7 +547,6 @@ class PatchScriptBuilder {
|
||||
displayMethod,
|
||||
false);
|
||||
}
|
||||
} else {
|
||||
final TreeWalk tw = find(path, within);
|
||||
ObjectId id = tw != null ? tw.getObjectId(0) : ObjectId.zeroId();
|
||||
FileMode mode = tw != null ? tw.getFileMode(0) : FileMode.MISSING;
|
||||
@@ -584,7 +583,6 @@ class PatchScriptBuilder {
|
||||
}
|
||||
}
|
||||
return createSide(path, id, mode, srcContent, src, mimeType, displayMethod, reuse);
|
||||
}
|
||||
} catch (IOException err) {
|
||||
throw new IOException("Cannot read " + within.name() + ":" + path, err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user