Gov. Dan Malloy (Photo by Jared Wickerham/Getty Images) Gov. Dan Malloy (Photo by Jared Wickerham/Getty Images)

Connecticut lawmakers approved a bill Thursday that would have inadvertently banned chocolate milk in schools.

But Gov. Dannel Malloy (D) said Friday that he wouldn’t sign the law, which nutritionists predicted could lead to an overall decline in milk consumption across the state. 

“We’re not going to ban chocolate milk in schools,” Malloy told The Hartford Courant on Friday.

The law would have restricted the amount of added sodium in all foods as part of an effort to lower childhood obesity rates. Chocolate milk, which contains up to 90 milligrams of added sodium, would not have been allowed in school cafeterias starting this fall.

Dozens of school districts across the country, including Virginia, Florida and Oregon, have banned flavored milk, which has more fat and calories than non-flavored options.

Schools in Arlington, Va. banned chocolate milk in 2011, but reversed the decision months later after a fierce backlash.

Another big concern for Malloy?

“What were all those chocolate-milk producing cows going to do?” he told the Courant.