[ELF] - Removed excessive check. NFC.
Thanks to Rui Ueyama who noticed that.
llvm-svn: 277062
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 5a34073..514e7f3 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -747,7 +747,7 @@
expect("{");
while (!Error && !skip("}")) {
- if ((!peek().empty() && peek().startswith("*")) || peek() == "KEEP") {
+ if (peek().startswith("*") || peek() == "KEEP") {
Cmd->Commands.push_back(readInputSectionDescription());
continue;
}