On a recent home inspection I came across some wiring in a wall that had been damaged. The homeowner had covered the damaged insulator with electrical tape. My recommendation is that the homeowner have an electrician come in and replace the wiring from the switch to the light fixture. A nick in a wire can result in a higher resistance in the wiring in that area. Higher resistance can cause the wire to heat up and cause a fire.