High-sugar or high-salt diets are not, in themselves, risk factors for type 2 diabetes. However, if either leads to obesity, it contributes to the risk of developing type 2 diabetes. Other risk factors for diabetes include age, family history, inactivity, and ethnicity (people of African, Asian, Pacific Islander, American Indian, and Latino heritage have a higher risk). However, having one or more of the risk factors doesn’t mean you’ll develop type 2 diabetes.