Apply clippy suggestion

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-02 19:54:01 +10:00
parent a2e6709ed6
commit 9391d22fa2
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -241,7 +241,7 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> {
""
};
if option != "" {
if !option.is_empty() {
return Err(BinstallError::OverrideOptionUsedWithMultiInstall { option }.into());
}
}