mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00
20 lines
418 B
C#
20 lines
418 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using YamlDotNet.RepresentationModel;
|
|
|
|
namespace DockerFileBuildHelper
|
|
{
|
|
public static class Extensions
|
|
{
|
|
public static YamlNode TryGet(this YamlNode node, string key)
|
|
{
|
|
try
|
|
{
|
|
return node[key];
|
|
}
|
|
catch (KeyNotFoundException) { return null; }
|
|
}
|
|
}
|
|
}
|