If we say that we have fellowship with him and walk in the darkness, we lie, and don't tell the truth.
The false claim in this verse is that of affirming that we walk with God even while we are walking in darkness.  "Walk" in this passage, as frequently in the New Testament, is an idiom for the totality of human conduct.