Former House Oversight Chairman Trey Gowdy said on Fox News Tuesday night that he thinks the FBI did the right thing by sending an informant into the Trump campaign.

WATCH:

President Donald Trump has accused the FBI of spying on his campaign, but intelligence officials say they were simply trying to find out the scope of Russia’s attempts to influence the 2016 election. Gowdy seemed to affirm the FBI’s side of the story during an interview with Martha MacCallum. (RELATED: The Important Questions About ‘Spygate’)

“[FBI Director] Chris Wray and [Deputy Attorney General] Rod Rosenstein have at least made it clear to us, Donald Trump was never the target of the investigation, he is not the target of the investigation,” Gowdy explained. “Keep in mind, that can all change based on testimony from a witness. But, for now, I think Chris Wray and Rod Rosenstein are stunned whenever people think Trump is the subject of their investigation.”

“I am even more convinced that the FBI did exactly what my fellow citizens would want them to do when they got the information they got, and that it has nothing to do with Donald Trump,” he concluded.

Follow Amber on Twitter