marcominerva/DatabaseGPT

Missing call to the method ThrowIfDisposed()

N1K0232 opened this issue · 7 comments

I was watching the code and I noticed that in the SqlContext.cs object, there's a missing call to the ThrowIfDisposed method at line 37
Was in intentional or is it just missing?

Could you please add an hyperlink to the file you refer, so it is easy to identify it?

Of course. My bad
https://github.com/marcominerva/DatabaseGPT/blob/master/src/DatabaseGpt/DataAccessLayer/SqlContext.cs#L37

I specified the line but not the method name because I forgot it

Yes, it is definitively missing. In this particular case it isn't a problem, because the SqlContext class is used via Dependency Injection, but it is better to add the call to ThrowIfDisposed also in this method. Do you mind to take care of this task making a PR?

Of course :)

Question. The "review required" is enabled in this repository? I don't want to cause troubles when making the PR

Yes, just send the pull request as soon as you are ready

Thank you so much for giving me the chance to collaborate :)