Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
return r;
if (lockers.size()) {
- cout << "There are " << lockers.size()
+ bool one = (lockers.size() == 1);
+ cout << "There " << (one ? "is " : "are ") << lockers.size()
<< (exclusive ? " exclusive" : " shared")
- << " lock(s) on this image.\n";
+ << " lock" << (one ? "" : "s") << " on this image.\n";
if (!exclusive)
cout << "Lock tag: " << tag << "\n";