mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go: delete test qhelp file
There shouldn't be qhelp files in the ql/test tree. https://github.com/github/codeql/pull/8631#issuecomment-1087316116
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
<!DOCTYPE qhelp PUBLIC
|
||||
"-//Semmle//qhelp//EN"
|
||||
"qhelp.dtd">
|
||||
<qhelp>
|
||||
|
||||
<overview>
|
||||
<p>GORM errors are returned as a field of the return value instead of a separate return value.</p>
|
||||
|
||||
<p>It is therefore very easy to miss that an error may occur and omit error handling routines.</p>
|
||||
</overview>
|
||||
<recommendation>
|
||||
|
||||
<p>Ensure that GORM errors are checked.</p>
|
||||
|
||||
</recommendation>
|
||||
<example>
|
||||
|
||||
<p>In the example below, </p>
|
||||
|
||||
<sample src="MissingErrorCheck.go" />
|
||||
|
||||
<p>The corrected version of <code>user</code> checks <code>err</code> before using <code>ptr</code>.</p>
|
||||
|
||||
<sample src="MissingErrorCheckGood.go" />
|
||||
|
||||
</example>
|
||||
<references>
|
||||
|
||||
<li>
|
||||
The Go Blog:
|
||||
<a href="https://blog.golang.org/error-handling-and-go">Error handling and Go</a>.
|
||||
</li>
|
||||
|
||||
</references>
|
||||
</qhelp>
|
||||
Reference in New Issue
Block a user