fix some obvious minor bugs (#2055)

This commit is contained in:
于玉桔 2018-12-17 00:33:48 +08:00 committed by 吴晟 Wu Sheng
parent 8eb1bb1c0a
commit 3fdab2fb95
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ public class SkywalkingSpanBuilder implements Tracer.SpanBuilder {
@Override
public Tracer.SpanBuilder withTag(String key, boolean value) {
if (Tags.ERROR.equals(key)) {
if (Tags.ERROR.getKey().equals(key)) {
isError = value;
} else {
tags.add(new Tag(key, value ? "true" : "false"));

View File

@ -200,7 +200,7 @@ public class AntPathMatcher implements TracePathMatcher {
* use pattern match path
*/
private static boolean matchStrings(String pattern, String path) {
if (StringUtil.isEmpty(pattern) || StringUtil.isEmpty(pattern)) {
if (StringUtil.isEmpty(pattern) || StringUtil.isEmpty(path)) {
return false;
}
// if this pattern has been compiled