Skip to content

Commit 921265e

Browse files
fixed. They are errors :skull
1 parent 5b789cd commit 921265e

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

commands/src/main/java/com/wizardlybump17/wlib/command/result/CommandResult.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,75 +81,75 @@ public String toString() {
8181
//ERROR
8282

8383
public static <T> @NotNull CommandResult<T> badRequest() {
84-
return new CommandResult<>(true, null, Type.BAD_REQUEST, null);
84+
return new CommandResult<>(false, null, Type.BAD_REQUEST, null);
8585
}
8686

8787
public static <T> @NotNull CommandResult<T> badRequest(@NotNull ErrorDetails errorDetails) {
88-
return new CommandResult<>(true, null, Type.BAD_REQUEST, errorDetails);
88+
return new CommandResult<>(false, null, Type.BAD_REQUEST, errorDetails);
8989
}
9090

9191
public static <T> @NotNull CommandResult<T> conflict() {
92-
return new CommandResult<>(true, null, Type.CONFLICT, null);
92+
return new CommandResult<>(false, null, Type.CONFLICT, null);
9393
}
9494

9595
public static <T> @NotNull CommandResult<T> conflict(@NotNull ErrorDetails errorDetails) {
96-
return new CommandResult<>(true, null, Type.CONFLICT, errorDetails);
96+
return new CommandResult<>(false, null, Type.CONFLICT, errorDetails);
9797
}
9898

9999
public static <T> @NotNull CommandResult<T> forbidden() {
100-
return new CommandResult<>(true, null, Type.FORBIDDEN, null);
100+
return new CommandResult<>(false, null, Type.FORBIDDEN, null);
101101
}
102102

103103
public static <T> @NotNull CommandResult<T> forbidden(@NotNull ErrorDetails errorDetails) {
104-
return new CommandResult<>(true, null, Type.FORBIDDEN, errorDetails);
104+
return new CommandResult<>(false, null, Type.FORBIDDEN, errorDetails);
105105
}
106106

107107
public static <T> @NotNull CommandResult<T> genericError() {
108-
return new CommandResult<>(true, null, Type.GENERIC_ERROR, null);
108+
return new CommandResult<>(false, null, Type.GENERIC_ERROR, null);
109109
}
110110

111111
public static <T> @NotNull CommandResult<T> genericError(@NotNull ErrorDetails errorDetails) {
112-
return new CommandResult<>(true, null, Type.GENERIC_ERROR, errorDetails);
112+
return new CommandResult<>(false, null, Type.GENERIC_ERROR, errorDetails);
113113
}
114114

115115
public static <T> @NotNull CommandResult<T> invalidSender() {
116-
return new CommandResult<>(true, null, Type.INVALID_SENDER, null);
116+
return new CommandResult<>(false, null, Type.INVALID_SENDER, null);
117117
}
118118

119119
public static <T> @NotNull CommandResult<T> invalidSender(@NotNull ErrorDetails errorDetails) {
120-
return new CommandResult<>(true, null, Type.INVALID_SENDER, errorDetails);
120+
return new CommandResult<>(false, null, Type.INVALID_SENDER, errorDetails);
121121
}
122122

123123
public static <T> @NotNull CommandResult<T> notFound() {
124-
return new CommandResult<>(true, null, Type.NOT_FOUND, null);
124+
return new CommandResult<>(false, null, Type.NOT_FOUND, null);
125125
}
126126

127127
public static <T> @NotNull CommandResult<T> notFound(@NotNull ErrorDetails errorDetails) {
128-
return new CommandResult<>(true, null, Type.NOT_FOUND, errorDetails);
128+
return new CommandResult<>(false, null, Type.NOT_FOUND, errorDetails);
129129
}
130130

131131
public static <T> @NotNull CommandResult<T> unauthorized() {
132-
return new CommandResult<>(true, null, Type.UNAUTHORIZED, null);
132+
return new CommandResult<>(false, null, Type.UNAUTHORIZED, null);
133133
}
134134

135135
public static <T> @NotNull CommandResult<T> unauthorized(@NotNull ErrorDetails errorDetails) {
136-
return new CommandResult<>(true, null, Type.UNAUTHORIZED, errorDetails);
136+
return new CommandResult<>(false, null, Type.UNAUTHORIZED, errorDetails);
137137
}
138138

139139
public static <T> @NotNull CommandResult<T> unprocessableContent() {
140-
return new CommandResult<>(true, null, Type.UNPROCESSABLE_CONTENT, null);
140+
return new CommandResult<>(false, null, Type.UNPROCESSABLE_CONTENT, null);
141141
}
142142

143143
public static <T> @NotNull CommandResult<T> unprocessableContent(@NotNull ErrorDetails errorDetails) {
144-
return new CommandResult<>(true, null, Type.UNPROCESSABLE_CONTENT, errorDetails);
144+
return new CommandResult<>(false, null, Type.UNPROCESSABLE_CONTENT, errorDetails);
145145
}
146146

147147
public static <T> @NotNull CommandResult<T> notImplemented() {
148-
return new CommandResult<>(true, null, Type.NOT_IMPLEMENTED, null);
148+
return new CommandResult<>(false, null, Type.NOT_IMPLEMENTED, null);
149149
}
150150

151151
public static <T> @NotNull CommandResult<T> notImplemented(@NotNull ErrorDetails errorDetails) {
152-
return new CommandResult<>(true, null, Type.NOT_IMPLEMENTED, errorDetails);
152+
return new CommandResult<>(false, null, Type.NOT_IMPLEMENTED, errorDetails);
153153
}
154154

155155
public enum Type {

0 commit comments

Comments
 (0)