Skip to content

Commit d971352

Browse files
sevasevaandreastt
authored andcommitted
Use right annotation
Using the right annotation to force the compiler to keep the seemingly no-op statement. This fixes it for all compilation modes. Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
1 parent d8bf859 commit d971352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: javascript/atoms/keyboard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -810,10 +810,10 @@ bot.Keyboard.prototype.updateOnHomeOrEnd_ = function(key) {
810810
* element.
811811
* @see https://code.google.com/p/chromium/issues/detail?id=330456
812812
* @private
813+
* @suppress {uselessCode}
813814
*/
814815
bot.Keyboard.checkCanUpdateSelection_ = function(element) {
815816
try {
816-
/** @suppress {suspiciousCode} */
817817
element.selectionStart;
818818
} catch (ex) {
819819
// The native error message is actually pretty informative, just add a

0 commit comments

Comments
 (0)