@samitouri / QOS-React / commits / 489caeb2d7

[flow] type adler32 (#7080)

This one is trivial Test Plan: npm run flow Reviewers: @zpao @spicyj

Christopher Chedeau committed Jun 20, 2016 at 15:35 UTC 489caeb2d7d62895da7ea9afb0e97344d333a2b5
1 file changed +2 -1
src/shared/utils/adler32.js
+2 -1
@@ -7,6 +7,7 @@
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 * @providesModule adler32
10 + * @flow
11 */
12
13 'use strict';
@@ -18,7 +19,7 @@ var MOD = 65521;
19 // This implementation (a modified version of the SheetJS version) has been optimized
20 // for our use case, at the expense of conforming to the adler32 specification
21 // for non-ascii inputs.
21 -function adler32(data) {
22 +function adler32(data: string): number {
23 var a = 1;
24 var b = 0;
25 var i = 0;