Use let for opts

Change-Id: Icce61096e869abe23ce847691cd65078b0b62cf0