From 75d393d928c0d4b83eef227ffa5d6c1bb459d809 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sat, 10 Aug 2013 12:28:23 +0200 Subject: [PATCH] Braces on same line! --- spine-csharp/src/Atlas.cs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/spine-csharp/src/Atlas.cs b/spine-csharp/src/Atlas.cs index b69ea3e6f..cad03818b 100644 --- a/spine-csharp/src/Atlas.cs +++ b/spine-csharp/src/Atlas.cs @@ -38,27 +38,19 @@ namespace Spine { TextureLoader textureLoader; #if WINDOWS_STOREAPP - private async Task ReadFile(string path, TextureLoader textureLoader) - { + private async Task ReadFile(string path, TextureLoader textureLoader) { var folder = Windows.ApplicationModel.Package.Current.InstalledLocation; - var file = await folder.GetFileAsync(path).AsTask().ConfigureAwait(false); - - using (var reader = new StreamReader(await file.OpenStreamForReadAsync().ConfigureAwait(false))) - { - try - { + using (var reader = new StreamReader(await file.OpenStreamForReadAsync().ConfigureAwait(false))) { + try { Load(reader, Path.GetDirectoryName(path), textureLoader); - } - catch (Exception ex) - { + } catch (Exception ex) { throw new Exception("Error reading atlas file: " + path, ex); } } } - public Atlas(String path, TextureLoader textureLoader) - { + public Atlas(String path, TextureLoader textureLoader) { this.ReadFile(path, textureLoader).Wait(); } #else