Supreme Court Justice Ruth Bader Ginsburg revealed Friday she is being treated for liver cancer but her admission earlier this week to Johns Hopkins Hospital in Baltimore for an infection was unrelated.

In a statement, Ginsburg, 87, said her chemotherapy has been “yielding positive results.”

"My most recent scan on July 7 indicated significant reduction of the liver lesions and no new disease. I am tolerating chemotherapy well and am encouraged by the success of my current treatment. I will continue biweekly chemotherapy to keep my cancer at bay, and am able to maintain an active daily routine," she said.

"Throughout, I have kept up with opinion writing and all other court work. I have often said I would remain a member of the court as long as I can do the job full steam. I remain fully able to do that."

Ginsburg has battled several illnesses, including various cancers --- colorectal, pancreatic and lung.

In May, Ginsberg was hospitalized for an infection that was caused by a gallstone, which was followed by her November stay at Johns Hopkins Hospital after experiencing fever and chills. In 2018, she suffered three fractured ribs after falling in her office.

Ginsburg, a liberal, is the eldest justice on the Supreme Court. If she stepped down, Trump likely would replace her with a conservative.

Ginsburg has said she wants to wait until her 90s to exit the Supreme Court. Oliver Wendell Holmes retired from the court just shy of his 91st birthday. John Paul Stevens also was 90 when he retired.

Ruth Bader Ginsburg
U.S. Supreme Court Justice Ruth Bader Ginsburg attends the lunch session of the Women's Conference in Long Beach, Calif., in this file photo taken Oct. 26, 2010. Reuters/Mario Anzuoni