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)
|
cmake_minimum_required (VERSION 3.6)
|
||||||
project (whyblocked
|
project (whyblocked
|
||||||
VERSION 0.6.1
|
VERSION 0.6.2
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -151,10 +151,13 @@ const bool whyblocked_text::start()
|
||||||
}
|
}
|
||||||
cout << std::get<1>(result) << '\n';
|
cout << std::get<1>(result) << '\n';
|
||||||
|
|
||||||
cout << "Receipts:\n";
|
if (!std::get<2>(result).empty())
|
||||||
for (const string &url : std::get<2>(result))
|
|
||||||
{
|
{
|
||||||
cout << " " << url << '\n';
|
cout << "Receipts:\n";
|
||||||
|
for (const string &url : std::get<2>(result))
|
||||||
|
{
|
||||||
|
cout << " " << url << '\n';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue