Late apologies get a bad rap. But they can be effective.

Joe Tacopina, the New York attorney for hip-hop artist Meek Mill, said in an interview last Monday it was too late for The Cosmopolitan of Las Vegas to tell Mill it was sorry for preventing him from entering a nightclub at the hotel and casino.

After the May 25 incident, Tacopina said he sent a letter to the Cosmopolitan and its general counsel and chief compliance officer, Anthony Pearl, demanding the hotel issue a prompt apology to Mill and grant him access to the property.

When the hotel instead issued conflicting explanations about what happened—it asserted that Mill had been involved in a prior incident at the hotel and, later, that he was turned away due to overcrowding—Tacopina said he and Mill would forge ahead with a lawsuit alleging the hotel “didn't want him [Mill] in because he's a black rapper.”

By Friday, as the Cosmopolitan was being battered by a storm of negative publicity, the hotel issued an apology on Twitter.

“We apologize for how we handled the situation on Saturday, May 25, as we did not act in a respectful manner and were wrong,” read the statement, which had been retweeted more than 180 times.

“Meek Mill has not had any prior incidents on our property,” the hotel added. “The Cosmopolitan has zero tolerance for discrimination and we pride ourselves for providing an inclusive environment. We look forward to welcoming Meek Mill back to the resort.”

Requests for comment on why the hotel apologized via social media and Pearl's role in the apology were not immediately returned.

The apology, while a bit belated, apparently was good enough for Mill and Tacopina.

“We appreciate the Cosmopolitan's apology and will no longer pursue legal recourse at this time,” Tacopina said.

Read More: