Skip to content

Commit f6a7a0a

Browse files
committed
fix warnings
1 parent 8559b24 commit f6a7a0a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

TryCSharp.Samples/Linq/LinqSamples50.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public void Execute()
3232
if (string.IsNullOrEmpty(tmpFilePath))
3333
{
3434
Output.WriteLine("ファイル作成中にエラー発生");
35+
return;
3536
}
3637

3738
Output.WriteLine("ファイル作成完了");

TryCSharp.Samples/Threading/ThreadingNamespaceSamples02.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public void Execute()
6969
private void DoAnonymousDataSlotProcess(object stateObj)
7070
{
7171
var slot = stateObj as LocalDataStoreSlot;
72+
if (slot == null)
73+
{
74+
return;
75+
}
7276

7377
//
7478
// スロットにデータを設定

0 commit comments

Comments
 (0)