Ignore:
Timestamp:
Aug 7, 2022, 3:02:24 PM (2 years ago)
Author:
alloc
Message:

Major refactoring/cleanup

File:
1 edited

Legend:

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

    r351 r391  
    77                public override byte[] GetFileContent (string _filename) {
    88                        try {
    9                                 if (!File.Exists (_filename)) {
    10                                         return null;
    11                                 }
    12 
    13                                 return File.ReadAllBytes (_filename);
     9                                return File.Exists (_filename) ? File.ReadAllBytes (_filename) : null;
    1410                        } catch (Exception e) {
    1511                                Log.Out ("Error in DirectAccess.GetFileContent: " + e);
Note: See TracChangeset for help on using the changeset viewer.