Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Dec 30, 2023
1 parent 2998bc4 commit c675d49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: GPL-3.0-or-later
using System;

using Microsoft.CSharp.RuntimeBinder;

namespace Smdn.LibHighlightSharp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#endif
using System.IO;
using System.Linq;

using Microsoft.CSharp.RuntimeBinder;

using Smdn.LibHighlightSharp.Bindings;

namespace Smdn.LibHighlightSharp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ private static string GetDefaultDataDirPath()

if (0 < path.Length) {
var pathEndsInDirectorySeparator =
#if SYSTEM_IO_PATH_ENDSINDIRECTORYSEPARATOR
#if SYSTEM_IO_PATH_ENDSINDIRECTORYSEPARATOR
Path.EndsInDirectorySeparator(path);
#elif SYSTEM_STRING_ENDSWITH_CHAR
#elif SYSTEM_STRING_ENDSWITH_CHAR
path.EndsWith(Path.DirectorySeparatorChar) || path.EndsWith(Path.AltDirectorySeparatorChar);
#else
#else
path[path.Length - 1] == Path.DirectorySeparatorChar || path[path.Length - 1] == Path.AltDirectorySeparatorChar;
#endif
#endif

if (!pathEndsInDirectorySeparator)
path += Path.DirectorySeparatorChar;
Expand Down

0 comments on commit c675d49

Please sign in to comment.