diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-14 18:13:27 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-14 18:13:27 -0400 |
commit | 4de18b516fb12c3f842e72560b4d41aae7b7eff9 (patch) | |
tree | 965320c93d11660d68437a165851090d05b2b2f4 /src/SMAPI | |
parent | 66272cbe46b848c64859cd0ab8cca6032c307137 (diff) | |
download | SMAPI-4de18b516fb12c3f842e72560b4d41aae7b7eff9.tar.gz SMAPI-4de18b516fb12c3f842e72560b4d41aae7b7eff9.tar.bz2 SMAPI-4de18b516fb12c3f842e72560b4d41aae7b7eff9.zip |
fix nullable annotation (#837)
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/TranslationHelper.cs | 2 | ||||
-rw-r--r-- | src/SMAPI/Framework/Translator.cs | 2 | ||||
-rw-r--r-- | src/SMAPI/ITranslationHelper.cs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs b/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs index d00ff279..684837ff 100644 --- a/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs @@ -50,7 +50,7 @@ namespace StardewModdingAPI.Framework.ModHelpers } /// <inheritdoc /> - public Translation Get(string key, object tokens) + public Translation Get(string key, object? tokens) { return this.Translator.Get(key, tokens); } diff --git a/src/SMAPI/Framework/Translator.cs b/src/SMAPI/Framework/Translator.cs index 794e3cde..b230a727 100644 --- a/src/SMAPI/Framework/Translator.cs +++ b/src/SMAPI/Framework/Translator.cs @@ -72,7 +72,7 @@ namespace StardewModdingAPI.Framework /// <summary>Get a translation for the current locale.</summary> /// <param name="key">The translation key.</param> /// <param name="tokens">An object containing token key/value pairs. This can be an anonymous object (like <c>new { value = 42, name = "Cranberries" }</c>), a dictionary, or a class instance.</param> - public Translation Get(string key, object tokens) + public Translation Get(string key, object? tokens) { return this.Get(key).Tokens(tokens); } diff --git a/src/SMAPI/ITranslationHelper.cs b/src/SMAPI/ITranslationHelper.cs index 32199910..8be8d2c1 100644 --- a/src/SMAPI/ITranslationHelper.cs +++ b/src/SMAPI/ITranslationHelper.cs @@ -29,7 +29,7 @@ namespace StardewModdingAPI /// <summary>Get a translation for the current locale.</summary> /// <param name="key">The translation key.</param> /// <param name="tokens">An object containing token key/value pairs. This can be an anonymous object (like <c>new { value = 42, name = "Cranberries" }</c>), a dictionary, or a class instance.</param> - Translation Get(string key, object tokens); + Translation Get(string key, object? tokens); /// <summary>Get a translation in every locale for which it's defined.</summary> /// <param name="key">The translation key.</param> |