NRefactory icon indicating copy to clipboard operation
NRefactory copied to clipboard

Invalid warning: Method never reaches it's end or 'return' statement.

Open Indomitable opened this issue 11 years ago • 0 comments

Hi I have this method:

            var filesPerWorkspace = from f in localPaths
                                    let workspace = this.GetWorkspaceByLocalPath(f)
                                    group f by workspace into wg
                                    select wg;
            foreach (var workspace in filesPerWorkspace)
            {
                var getRequests = workspace.Select(file => .....).ToList();
                workspace.Key.Get(getRequests, GetOptions.GetAll);
            }

And I'm getting warning Method never reaches it's end or 'return' statement

Indomitable avatar Nov 05 '13 09:11 Indomitable