This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-30
lines changed Expand file tree Collapse file tree 3 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,7 @@ internal async Task<long> GetBinaryResourcesModifiedTime()
139
139
var fileProperties = await assetJSBundleFile . GetBasicPropertiesAsync ( ) ;
140
140
return fileProperties . DateModified . ToUnixTimeMilliseconds ( ) ;
141
141
}
142
-
143
-
142
+
144
143
internal void InitializeUpdateAfterRestart ( )
145
144
{
146
145
JObject pendingUpdate = SettingsManager . GetPendingUpdate ( ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -235,14 +235,7 @@ private async Task<StorageFolder> GetCurrentPackageFolder()
235
235
private async Task < JObject > GetCurrentPackageInfo ( )
236
236
{
237
237
StorageFile statusFile = await GetStatusFile ( ) ;
238
- try
239
- {
240
- return await CodePushUtils . GetJObjectFromFile ( statusFile ) ;
241
- }
242
- catch ( Exception e )
243
- {
244
- throw new CodePushUnknownException ( "Error getting current package info" , e ) ;
245
- }
238
+ return await CodePushUtils . GetJObjectFromFile ( statusFile ) ;
246
239
}
247
240
248
241
private async Task < StorageFile > GetDownloadFile ( )
@@ -270,14 +263,7 @@ private string ShortenPackageHash(string longPackageHash)
270
263
271
264
private async Task UpdateCurrentPackageInfo ( JObject packageInfo )
272
265
{
273
- try
274
- {
275
- await FileIO . WriteTextAsync ( await GetStatusFile ( ) , JsonConvert . SerializeObject ( packageInfo ) ) ;
276
- }
277
- catch ( IOException e )
278
- {
279
- throw new CodePushUnknownException ( "Error updating current package info" , e ) ;
280
- }
266
+ await FileIO . WriteTextAsync ( await GetStatusFile ( ) , JsonConvert . SerializeObject ( packageInfo ) ) ;
281
267
}
282
268
}
283
269
}
You can’t perform that action at this time.
0 commit comments