We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0094205 commit fde4af0Copy full SHA for fde4af0
library/src/main/java/com/readystatesoftware/sqliteasset/SQLiteAssetHelper.java
@@ -467,8 +467,7 @@ private void copyDatabaseFromAssets() throws SQLiteAssetException {
467
private InputStream getUpgradeSQLStream(int oldVersion, int newVersion) {
468
String path = String.format(mUpgradePathFormat, oldVersion, newVersion);
469
try {
470
- InputStream is = mContext.getAssets().open(path);
471
- return is;
+ return mContext.getAssets().open(path);
472
} catch (IOException e) {
473
Log.w(TAG, "missing database upgrade script: " + path);
474
return null;
0 commit comments