mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
Use isEmpty
/ beEmpty()
.
Partial #592 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
d7074db06f
commit
06a347c450
3 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ extension Mas {
|
|||
throw error as? MASError ?? .searchFailed
|
||||
}
|
||||
|
||||
guard apps.count > 0 else {
|
||||
guard !apps.isEmpty else {
|
||||
printWarning("Nothing found to upgrade")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public class AppListsFormatterSpec: QuickSpec {
|
|||
products = []
|
||||
}
|
||||
it("formats nothing as empty string") {
|
||||
expect(format(products)) == ""
|
||||
expect(format(products)).to(beEmpty())
|
||||
}
|
||||
it("can format a single product") {
|
||||
let product = SoftwareProductMock(
|
||||
|
|
|
@ -25,7 +25,7 @@ public class SearchResultsFormatterSpec: QuickSpec {
|
|||
results = []
|
||||
}
|
||||
it("formats nothing as empty string") {
|
||||
expect(format(results, false)) == ""
|
||||
expect(format(results, false)).to(beEmpty())
|
||||
}
|
||||
it("can format a single result") {
|
||||
let result = SearchResult(
|
||||
|
|
Loading…
Reference in a new issue