Ignore:
Timestamp:
Sep 4, 2018, 1:00:48 PM (6 years ago)
Author:
alloc
Message:

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/FileCache/DirectAccess.cs

    r199 r325  
    11using System;
    2 using System.Collections.Generic;
    32using System.IO;
    43
    5 namespace AllocsFixes.FileCache
    6 {
     4namespace AllocsFixes.FileCache {
    75        // Not caching at all, simply reading from disk on each request
    8         public class DirectAccess : AbstractCache
    9         {
    10 
    11                 public DirectAccess ()
    12                 {
    13                 }
    14 
    15                 public override byte[] GetFileContent (string filename)
    16                 {
     6        public class DirectAccess : AbstractCache {
     7                public override byte[] GetFileContent (string filename) {
    178                        try {
    189                                if (!File.Exists (filename)) {
     
    2415                                Log.Out ("Error in DirectAccess.GetFileContent: " + e);
    2516                        }
     17
    2618                        return null;
    2719                }
    28 
    2920        }
    3021}
    31 
Note: See TracChangeset for help on using the changeset viewer.