codeintel: Do not use copy of scanner slice
Created by: efritz
Fixes possible error condition as pointed out by @keegancsmith in https://github.com/sourcegraph/sourcegraph/pull/10990#discussion_r432080003.
Created by: efritz
Fixes possible error condition as pointed out by @keegancsmith in https://github.com/sourcegraph/sourcegraph/pull/10990#discussion_r432080003.