Either no brackets or put invalidate on its own line.