Skip to content

Commit e810a2c

Browse files
Chris Brodylovasoa
Chris Brody
authored andcommitted
cleanup spacing in src (#324)
* cleanup: add newline to src/exported_functions.json * cleanup: remove extra line from end of src/exported_runtime_methods.json * cleanup: remove trailing whitespace from src/api-data.coffee * cleanup: remove trailing whitespace from src/api.coffee * cleanup: remove trailing whitespace from src/shell-pre.js * cleanup: remove extra line with whitespace from src/shell-post.js
1 parent 4d18089 commit e810a2c

6 files changed

+5
-7
lines changed

Diff for: src/api-data.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ SQLite.TEXT=3
4040
SQLite.BLOB=4
4141
SQLite.NULL=5
4242

43-
# Encodings, used for registering functions.
43+
# Encodings, used for registering functions.
4444
SQLite.UTF8=1

Diff for: src/api.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class Database
315315
try
316316
# Store the SQL string in memory. The string will be consumed, one statement
317317
# at a time, by sqlite3_prepare_v2_sqlptr.
318-
# Note that if we want to allocate as much memory as could _possibly_ be used, we can
318+
# Note that if we want to allocate as much memory as could _possibly_ be used, we can
319319
# we allocate bytes equal to 4* the number of chars in the sql string.
320320
# It would be faster, but this is probably a premature optimization
321321
nextSqlPtr = allocateUTF8OnStack(sql)
@@ -484,7 +484,7 @@ class Database
484484
sqlite3_result_error(cx,error,-1)
485485
return
486486

487-
# Return the result of the user defined function to SQLite
487+
# Return the result of the user defined function to SQLite
488488
switch typeof(result)
489489
when 'boolean' then sqlite3_result_int(cx,if result then 1 else 0)
490490
when 'number' then sqlite3_result_double(cx, result)

Diff for: src/exported_functions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
"_sqlite3_result_int64",
4040
"_sqlite3_result_error",
4141
"_RegisterExtensionFunctions"
42-
]
42+
]

Diff for: src/exported_runtime_methods.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
"stackSave",
55
"stackRestore"
66
]
7-

Diff for: src/shell-post.js

-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ else if (typeof define === 'function' && define['amd']) {
2020
else if (typeof exports === 'object'){
2121
exports["Module"] = initSqlJs;
2222
}
23-

Diff for: src/shell-pre.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ var initSqlJs = function (moduleConfig) {
6666
// of the options, and has the side effect of reducing emcc's efforts to modify the module if its output were to change in the future.
6767
// That's a nice side effect since we're handling the modularization efforts ourselves
6868
module = undefined;
69-
69+
7070
// The emcc-generated code and shell-post.js code goes below,
7171
// meaning that all of it runs inside of this promise. If anything throws an exception, our promise will abort

0 commit comments

Comments
 (0)