Fix for TimestampFlag.GetValue to return empty string without value
This commit is contained in:
parent
a91950ff53
commit
6d67b2dc59
@ -90,7 +90,7 @@ func (f *TimestampFlag) GetCategory() string {
|
||||
// GetValue returns the flags value as string representation and an empty
|
||||
// string if the flag takes no value at all.
|
||||
func (f *TimestampFlag) GetValue() string {
|
||||
if f.Value != nil {
|
||||
if f.Value != nil && f.Value.timestamp != nil {
|
||||
return f.Value.timestamp.String()
|
||||
}
|
||||
return ""
|
||||
|
Loading…
Reference in New Issue
Block a user