I would just do it. Don't even think about it. If a cop has a problem with it then just do something different next time. As long as you're not riding erratically and darting back and forth between road and sidewalk, I don't see it as being a problem.