Only attempt to show receipts if there are any.
Previously "Receipts:" was still shown.develop
parent
4a9c513b55
commit
08ff4d628b
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.6)
|
||||
project (whyblocked
|
||||
VERSION 0.6.1
|
||||
VERSION 0.6.2
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -151,10 +151,13 @@ const bool whyblocked_text::start()
|
|||
}
|
||||
cout << std::get<1>(result) << '\n';
|
||||
|
||||
cout << "Receipts:\n";
|
||||
for (const string &url : std::get<2>(result))
|
||||
if (!std::get<2>(result).empty())
|
||||
{
|
||||
cout << " " << url << '\n';
|
||||
cout << "Receipts:\n";
|
||||
for (const string &url : std::get<2>(result))
|
||||
{
|
||||
cout << " " << url << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue