Are promises you thought was sin but it actually isn't count as breaking it?

Now, I didn't promise with my mouth or tounge. I said it in my head with the name of the Lord out of thinking I was commited enough to do it and from foolishness. Now I have broken that promise, does it count as breaking it even if I did not proffess it with my mouth. The thing I promised not to do wasn't even a sin.