Skip to content

Commit

Permalink
fix: fix renamed event args previous relation path
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Apr 14, 2024
1 parent f1b56db commit a9edc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/SignalR/Models/FileRenamedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class FileRenamedEventArgs : FileEventArgs, IFileRelocationEventArgs

/// <inheritdoc/>
[JsonIgnore]
public string PreviousRelativePath => RelativePath[^FileName.Length] + PreviousFileName;
public string PreviousRelativePath => RelativePath[..^FileName.Length] + PreviousFileName;

public class V0 : IFileRelocationEventArgs
{
Expand Down

0 comments on commit a9edc2b

Please sign in to comment.